From edf60e0f3c31bd6597c2ca10d8396e1e0f563c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Wed, 4 Mar 2026 09:54:54 +0100 Subject: [PATCH] ci: add linux-arm64 binary to release and CI (#484) Add aarch64-unknown-linux-gnu build using native ubuntu-24.04-arm GitHub-hosted runner, avoiding cross-compilation entirely. - release.yml: add hindsight-linux-arm64 matrix entry - test.yml: add build-rust-cli-arm64 job to verify compilation on PRs Closes #483 --- .github/workflows/release.yml | 4 ++++ .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce7efc9c..fadceefc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -387,6 +387,10 @@ jobs: target: aarch64-apple-darwin artifact_name: hindsight asset_name: hindsight-darwin-arm64 + - os: ubuntu-24.04-arm + target: aarch64-unknown-linux-gnu + artifact_name: hindsight + asset_name: hindsight-linux-arm64 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c18d8691..14ba5588 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -686,6 +686,30 @@ jobs: echo "=== API Server Logs ===" cat /tmp/api-server.log || echo "No API server log found" + build-rust-cli-arm64: + runs-on: ubuntu-24.04-arm + + steps: + - uses: actions/checkout@v4 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + with: + targets: aarch64-unknown-linux-gnu + + - name: Cache cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + hindsight-cli/target + key: linux-arm64-cargo-${{ hashFiles('**/Cargo.lock') }} + + - name: Build CLI + working-directory: hindsight-cli + run: cargo build --release --target aarch64-unknown-linux-gnu + test-rust-client: runs-on: ubuntu-latest env: