diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index c30c97a..d6b3443 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -153,8 +153,39 @@ jobs: dist/elf-report-linux-arm64.json 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] + 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') runs-on: ubuntu-latest container: