Skip to content

Commit

Permalink
matrix strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed May 29, 2024
1 parent 8a2416b commit 55941cf
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ jobs:
miri:
if: ( ! github.event.pull_request.draft )
name: "Test with Miri"

runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
steps:
- uses: actions/checkout@v4

Expand All @@ -76,18 +78,15 @@ jobs:
with:
toolchain: nightly
components: miri
targets: x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu
targets: ${{ matrix.target }}

- uses: Swatinem/[email protected]

- name: Cargo version
run: cargo version --verbose
- name: Build
run: |
cargo version --verbose
cargo update
cargo build --target ${{ matrix.target }}
- name: Cargo update
run: cargo update

- name: Test with Miri on x86_64
run: cargo miri test -p clmul -p matrix-transpose --target x86_64-unknown-linux-gnu

- name: Test with Miri on aarch64
run: cargo miri test -p clmul -p matrix-transpose --target aarch64-unknown-linux-gnu
- name: Test with Miri on ${{ matrix.target }}
run: cargo miri test -p clmul -p matrix-transpose --target ${{ matrix.target }}

0 comments on commit 55941cf

Please sign in to comment.