Release gate: AppImage runtime must start in a slim container (x64 native, arm64 qemu)
This commit is contained in:
1 parent
4d144a581e
commit
7c9616f0bb
1 file changed
+32
-1
@@ -153,8 +153,39 @@ jobs:
|
|||||||
dist/elf-report-linux-arm64.json
|
dist/elf-report-linux-arm64.json
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
publish:
|
# The AppImage runtime must start on a stock system: run it in a slim container without development
|
||||||
|
# packages (no unversioned libz.so), natively for x64 and under qemu-aarch64 for arm64.
|
||||||
|
appimage-startup:
|
||||||
needs: [linux-x64, linux-arm64]
|
needs: [linux-x64, linux-arm64]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: node:22-bookworm-slim
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
path: artifacts
|
||||||
|
|
||||||
|
- name: x64 AppImage runtime starts without development packages
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
echo "zlib files present:"; ls /usr/lib/x86_64-linux-gnu/ | grep '^libz\.' || true
|
||||||
|
app=$(ls artifacts/teamspeach-linux-x64/TeamsPeach-*.AppImage)
|
||||||
|
chmod +x "$app"
|
||||||
|
"$app" --appimage-version
|
||||||
|
|
||||||
|
- name: arm64 AppImage runtime starts under qemu-aarch64 (emulated)
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
dpkg --add-architecture arm64
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y --no-install-recommends qemu-user libc6:arm64 zlib1g:arm64
|
||||||
|
echo "arm64 zlib files present:"; ls /usr/lib/aarch64-linux-gnu/ | grep '^libz\.' || true
|
||||||
|
app=$(ls artifacts/teamspeach-linux-arm64/TeamsPeach-*-arm64.AppImage)
|
||||||
|
chmod +x "$app"
|
||||||
|
qemu-aarch64 -L / "$app" --appimage-version
|
||||||
|
|
||||||
|
publish:
|
||||||
|
needs: [linux-x64, linux-arm64, appimage-startup]
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
|
|||||||
Reference in new issue
Block a user