From abc6779ddb96b3cac9348f8b879dece66bd79b7c Mon Sep 17 00:00:00 2001 From: Joe Birr-Pixton Date: Sun, 6 Oct 2024 18:51:31 +0100 Subject: [PATCH] tmp: test aarch64-linux --- .github/workflows/build.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 65eb4c95..99fff2e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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) @@ -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