ci: better cargo test parameters + update dependencies #257
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [dev] | |
pull_request: | |
branches: [dev] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
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 | |
- name: Install Rust nightly with Miri | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
components: miri, rust-docs, rustfmt, clippy | |
- uses: Swatinem/[email protected] | |
- name: Cargo version | |
run: cargo version --verbose | |
- name: Miri setup | |
run: cargo miri setup | |
- name: Test with Miri on ${{ matrix.target }} | |
run: cargo miri test -p clmul -p matrix-transpose --target ${{ matrix.target }} |