Skip to content

Commit e68c684

Browse files
authored
zeroize: test under cargo miri in CI (#1552)
1 parent 4a53d7d commit e68c684

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎.github/workflows/zeroize.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,24 @@ jobs:
148148
- run: cross test --target ${{ matrix.target }}
149149
- run: cross test --target ${{ matrix.target }} --all-features
150150

151+
# Test using `cargo miri`
152+
miri:
153+
runs-on: ubuntu-latest
154+
env:
155+
MIRIFLAGS: "-Zmiri-symbolic-alignment-check -Zmiri-strict-provenance"
156+
strategy:
157+
matrix:
158+
target:
159+
- x86_64-unknown-linux-gnu
160+
- s390x-unknown-linux-gnu
161+
steps:
162+
- uses: actions/checkout@v7
163+
- uses: dtolnay/rust-toolchain@stable
164+
with:
165+
toolchain: nightly-2026-08-23
166+
- run: rustup component add miri
167+
- run: cargo miri test --target ${{ matrix.target }} --all-features --lib
168+
151169
# Tests for x86-64 `simd` support
152170
x86:
153171
strategy:

0 commit comments

Comments
 (0)