CI / Build & Test (push) Successful in 2m52s
Reverts the experimental feature that attempted to serve the dashboard
via a local HTTP server registered as a hardcoded `my.dash.board` virtual
host, intended to satisfy Chrome's PWA "secure origin" installability
requirement. The approach caused proxy connection errors and file-not-found
issues that were not worth resolving.
Removed: native-host/dashboard-server.js, native-host/test-chain.mjs
Reverted: startup.js, message-router.js, virtual-hosts.js, index.js,
build-distributable.js, extension/pages/virtual-hosts.js,
CI workflows (ci.yml, release.yml)
98 lines
2.7 KiB
YAML
98 lines
2.7 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*.*'
|
|
|
|
jobs:
|
|
release:
|
|
name: Build & Publish Release
|
|
runs-on: ssh
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Check toolchain versions
|
|
run: node --version && npm --version
|
|
|
|
- name: Install root dependencies
|
|
run: npm install
|
|
|
|
- name: Install native-host dependencies
|
|
run: npm install
|
|
working-directory: native-host
|
|
|
|
- name: Build all platform binaries
|
|
run: node scripts/build-distributable.js --all --package
|
|
|
|
- name: Package extension (zip + xpi)
|
|
run: npm run pack
|
|
|
|
- name: Smoke test — run binary for current platform
|
|
run: |
|
|
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/${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
|
|
fi
|
|
done
|
|
|
|
if [ -z "$BIN" ]; then
|
|
echo "No runnable binary found — skipping smoke test"
|
|
exit 0
|
|
fi
|
|
|
|
echo "Testing binary: $BIN"
|
|
chmod +x "$BIN"
|
|
OUTPUT=$(timeout 6 "$BIN" </dev/null 2>&1 || true)
|
|
echo "$OUTPUT"
|
|
|
|
if echo "$OUTPUT" | grep -q "\[holesail-browser-host\] ready"; then
|
|
echo "PASS: binary started successfully"
|
|
else
|
|
echo "FAIL: binary did not print ready signal"
|
|
exit 1
|
|
fi
|
|
|
|
- name: List release artifacts
|
|
run: |
|
|
echo "=== releases/ ==="
|
|
find releases/ -type f | sort
|
|
echo ""
|
|
find releases/ -type f -exec ls -lh {} \; | awk '{print $5, $9}'
|
|
|
|
- name: Generate checksums
|
|
run: |
|
|
cd releases
|
|
find . -name "*.zip" -o -name "*.xpi" | sort | xargs sha256sum > SHA256SUMS.txt
|
|
cat SHA256SUMS.txt
|
|
|
|
- name: Publish release
|
|
uses: gitea.com/actions/gitea-release-action@latest
|
|
with:
|
|
token: ${{ secrets.RELEASE_TOKEN }}
|
|
tag_name: ${{ gitea.ref_name }}
|
|
name: Holesail Browser ${{ gitea.ref_name }}
|
|
files: |-
|
|
releases/*.zip
|
|
releases/*.xpi
|
|
releases/SHA256SUMS.txt
|
|
sha256sum: false
|