From 1e862db71e0d1377179a78a10df04e5cbf7cf2c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4ng=20Tr=E1=BA=A7n?= Date: Mon, 23 Nov 2026 13:40:08 +0700 Subject: [PATCH] ci(release): test Termux on arm64 and promote the release after install tests The Termux install test ran the x86_64 Termux image on an x86_64 runner, but Android builds are aarch64 only since v2.0.0, so the installer rightly refused. It now uses the aarch64 image on the arm64 runner. Releases stayed marked as pre-release. A promote-release job now marks the release as latest once every install test passes. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 15 ++++++++++++++- docker-bake.hcl | 1 + docker/install_test_termux.Dockerfile | 3 ++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bc6a61d..95c1e0a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -148,7 +148,8 @@ jobs: test-installation: name: test-installation (${{ matrix.target }}) needs: [create-release, publish-release] - runs-on: ubuntu-latest + # Termux runs on the arm64 runner: Android builds are aarch64 only. + runs-on: ${{ matrix.target == 'install-test-termux' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -163,3 +164,15 @@ jobs: run: | docker buildx bake -f docker-bake.hcl ${{ matrix.target }} + + promote-release: + name: promote-release + needs: [create-release, test-installation] + runs-on: ubuntu-latest + steps: + - name: Mark release as latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release edit "${{ needs.create-release.outputs.version }}" \ + --repo "${{ github.repository }}" --prerelease=false --latest diff --git a/docker-bake.hcl b/docker-bake.hcl index 82c5337..49babd1 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -254,6 +254,7 @@ target "install-test-arch" { target "install-test-termux" { context = "." dockerfile = "docker/install_test_termux.Dockerfile" + platforms = ["linux/arm64"] args = { FLYLINE_INSTALL_VERSION = FLYLINE_INSTALL_VERSION } diff --git a/docker/install_test_termux.Dockerfile b/docker/install_test_termux.Dockerfile index fadb00e..3a283db 100644 --- a/docker/install_test_termux.Dockerfile +++ b/docker/install_test_termux.Dockerfile @@ -1,4 +1,5 @@ -FROM termux/termux-docker:latest +# flyline publishes Android builds for aarch64 only, so test the aarch64 Termux image. +FROM termux/termux-docker:aarch64 ARG FLYLINE_INSTALL_VERSION