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
This commit is contained in:
parent
719e79a4d9
commit
edf60e0f3c
2 changed files with 28 additions and 0 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -387,6 +387,10 @@ jobs:
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
artifact_name: hindsight
|
artifact_name: hindsight
|
||||||
asset_name: hindsight-darwin-arm64
|
asset_name: hindsight-darwin-arm64
|
||||||
|
- os: ubuntu-24.04-arm
|
||||||
|
target: aarch64-unknown-linux-gnu
|
||||||
|
artifact_name: hindsight
|
||||||
|
asset_name: hindsight-linux-arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
|
||||||
24
.github/workflows/test.yml
vendored
24
.github/workflows/test.yml
vendored
|
|
@ -686,6 +686,30 @@ jobs:
|
||||||
echo "=== API Server Logs ==="
|
echo "=== API Server Logs ==="
|
||||||
cat /tmp/api-server.log || echo "No API server log found"
|
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:
|
test-rust-client:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue