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 abc6779
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
- os: macos-latest
- os: windows-latest
- os: ubuntu-latest
cross: 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.cross != ''
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.cross }}

- 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 abc6779

Please sign in to comment.