+23
-9
@@ -76,6 +76,7 @@ jobs:
|
||||
node --check native-host/https-proxy.js
|
||||
node --check native-host/connect-proxy.js
|
||||
node --check native-host/messenger.js
|
||||
node --check native-host/dashboard-server.js
|
||||
node --check native-host/host/paths.js
|
||||
node --check native-host/host/logger.js
|
||||
node --check native-host/host/startup.js
|
||||
@@ -103,15 +104,23 @@ jobs:
|
||||
|
||||
- name: Smoke test — run native binary for current platform
|
||||
run: |
|
||||
PLAT=$(node -e "process.stdout.write(process.platform)")
|
||||
ARCH=$(node -e "process.stdout.write(process.arch === 'arm64' ? 'arm64' : 'x64')")
|
||||
HOST="${PLAT}-${ARCH}"
|
||||
echo "Runner platform: $HOST"
|
||||
echo "=== releases/ layout ==="
|
||||
find releases/ -type f | sort
|
||||
echo ""
|
||||
|
||||
# bare-build names subdirs after the CPU ABI (x86_64, aarch64, arm64, etc.)
|
||||
# rather than the Node-style platform-arch string, so we search by filename.
|
||||
MACHINE=$(uname -m)
|
||||
echo "uname -m: $MACHINE"
|
||||
|
||||
BIN=""
|
||||
# Prefer a subdir that matches the machine arch, fall back to any native binary.
|
||||
for candidate in \
|
||||
"releases/${HOST}/holesail-browser-host" \
|
||||
"releases/${HOST}/holesail-browser-host.exe"; do
|
||||
"releases/${MACHINE}/holesail-browser-host" \
|
||||
"releases/x86_64/holesail-browser-host" \
|
||||
"releases/aarch64/holesail-browser-host" \
|
||||
"releases/arm64/holesail-browser-host" \
|
||||
"releases/holesail-browser-host"; do
|
||||
if [ -f "$candidate" ]; then
|
||||
BIN="$candidate"
|
||||
break
|
||||
@@ -119,9 +128,7 @@ jobs:
|
||||
done
|
||||
|
||||
if [ -z "$BIN" ]; then
|
||||
echo "No binary found for $HOST — listing releases/:"
|
||||
find releases/ -type f | sort
|
||||
echo "SKIP: no runnable binary for this platform"
|
||||
echo "No runnable binary found — skipping smoke test"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -142,6 +149,13 @@ jobs:
|
||||
echo "$OUTPUT" | grep -i "not available"
|
||||
fi
|
||||
|
||||
if echo "$OUTPUT" | grep -q "\[dashboard-server\] listening on"; then
|
||||
echo "PASS: dashboard server started (my.dash.board virtual host registered)"
|
||||
else
|
||||
echo "FAIL: dashboard server did not start — bundle assets may be missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "PASS: smoke test complete"
|
||||
|
||||
- name: Generate checksums
|
||||
|
||||
@@ -32,15 +32,22 @@ jobs:
|
||||
|
||||
- name: Smoke test — run binary for current platform
|
||||
run: |
|
||||
PLAT=$(node -e "process.stdout.write(process.platform)")
|
||||
ARCH=$(node -e "process.stdout.write(process.arch === 'arm64' ? 'arm64' : 'x64')")
|
||||
HOST="${PLAT}-${ARCH}"
|
||||
echo "Runner platform: $HOST"
|
||||
echo "=== releases/ layout ==="
|
||||
find releases/ -type f | sort
|
||||
echo ""
|
||||
|
||||
# bare-build names subdirs after the CPU ABI (x86_64, aarch64, arm64, etc.)
|
||||
# rather than the Node-style platform-arch string, so we search by filename.
|
||||
MACHINE=$(uname -m)
|
||||
echo "uname -m: $MACHINE"
|
||||
|
||||
BIN=""
|
||||
for candidate in \
|
||||
"releases/${HOST}/holesail-browser-host" \
|
||||
"releases/${HOST}/holesail-browser-host.exe"; do
|
||||
"releases/${MACHINE}/holesail-browser-host" \
|
||||
"releases/x86_64/holesail-browser-host" \
|
||||
"releases/aarch64/holesail-browser-host" \
|
||||
"releases/arm64/holesail-browser-host" \
|
||||
"releases/holesail-browser-host"; do
|
||||
if [ -f "$candidate" ]; then
|
||||
BIN="$candidate"
|
||||
break
|
||||
@@ -48,8 +55,7 @@ jobs:
|
||||
done
|
||||
|
||||
if [ -z "$BIN" ]; then
|
||||
echo "No binary found for $HOST — skipping smoke test"
|
||||
find releases/ -type f | sort
|
||||
echo "No runnable binary found — skipping smoke test"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -65,6 +71,13 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if echo "$OUTPUT" | grep -q "\[dashboard-server\] listening on"; then
|
||||
echo "PASS: dashboard server started (my.dash.board virtual host registered)"
|
||||
else
|
||||
echo "FAIL: dashboard server did not start — bundle assets may be missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: List release artifacts
|
||||
run: |
|
||||
echo "=== releases/ ==="
|
||||
|
||||
Reference in New Issue
Block a user