Skip to content

Commit

Permalink
aarch target.
Browse files Browse the repository at this point in the history
  • Loading branch information
csasarak committed Aug 27, 2024
1 parent 071d0a9 commit 120b8bb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ jobs:
# Set up Rust.
# This action installs the 'minimal' profile.
- uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-unknown-linux-musl

- name: Install additional Rust tooling
uses: taiki-e/install-action@v2
Expand All @@ -93,8 +95,8 @@ jobs:
# using jemalloc reduces the performance impact of this
# over the default libc allocator (which performs very poorly in static builds).
- name: Build Rust dependencies (Linux)
if: ${{ matrix.os-name == 'linux' }}
run: cargo build --feature jemalloc --release
if: ${{ contains(matrix.os-name, 'linux') }}
run: cargo build --target aarch64-unknown-linux-musl --release

# Non-Linux environments generally don't need `jemalloc`
# and in particular Windows doesn't support it.
Expand All @@ -104,7 +106,7 @@ jobs:

# Run tests in release mode to reduce the need for rebuilds.
- name: Test Rust dependencies
run: cargo nextest run --release
run: cargo nextest run --target=aarch64-unknown-linux-musl --release

- name: Ensure git ownership check does not lead to compiler error
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
Expand Down

0 comments on commit 120b8bb

Please sign in to comment.