Skip to content

Commit

Permalink
tmp: test aarch64-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Oct 6, 2024
1 parent 751f988 commit 9f34e29
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- cargo: cargo
- os: ubuntu-latest
cargo: cross
target: aarch64-unknown-linux-gnu

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -29,6 +35,12 @@ jobs:
if: runner.os == 'Windows'
uses: ilammy/setup-nasm@v1

- name: Install cross
if: matrix.cargo == "cross"
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}

- name: Build (debug)
run: cargo build -p graviola
- name: Run tests (debug)
Expand All @@ -40,7 +52,7 @@ jobs:
run: cargo test --release

- name: Artificial CPU feature tests (x86_64)
if: runner.os == 'Linux'
if: runner.os == 'Linux' && matrix.cargo == 'cargo'
run: |
# test software fallbacks for sha256 and sha512
env GRAVIOLA_CPU_DISABLE_sha=1 GRAVIOLA_CPU_DISABLE_bmi2=1 cargo test

0 comments on commit 9f34e29

Please sign in to comment.