Skip to content

Commit

Permalink
Enable Miri testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bifurcation committed Mar 2, 2024
1 parent c9d32f8 commit 232fe88
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/ml-kem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,28 +69,27 @@ jobs:
- run: cargo test
- run: cargo test --all-features

# TODO(tarcieri): miri
# miri:
# runs-on: ubuntu-latest
# env:
# MIRIFLAGS: "-Zmiri-symbolic-alignment-check -Zmiri-strict-provenance"
# strategy:
# matrix:
# target:
# - x86_64-unknown-linux-gnu
# - s390x-unknown-linux-gnu
# steps:
# - uses: actions/checkout@v4
# - uses: RustCrypto/actions/cargo-cache@master
# - uses: dtolnay/rust-toolchain@master
# with:
# toolchain: nightly
# - name: Install Miri
# run: |
# rustup component add miri
# cargo miri setup
# - name: Test with Miri
# run: |
# cargo miri test --target ${{ matrix.target }} --no-default-features
# cargo miri test --target ${{ matrix.target }}
# cargo miri test --target ${{ matrix.target }} --all-features
miri:
runs-on: ubuntu-latest
env:
MIRIFLAGS: "-Zmiri-symbolic-alignment-check -Zmiri-strict-provenance"
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- s390x-unknown-linux-gnu
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
- name: Install Miri
run: |
rustup component add miri
cargo miri setup
- name: Test with Miri
run: |
cargo miri test --target ${{ matrix.target }} --no-default-features
cargo miri test --target ${{ matrix.target }}
cargo miri test --target ${{ matrix.target }} --all-features

0 comments on commit 232fe88

Please sign in to comment.