Skip to content

Commit 703542e

Browse files
committed
CI: test ctutils using cargo miri
1 parent 533ac35 commit 703542e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ctutils.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,19 @@ jobs:
7575
- uses: dtolnay/rust-toolchain@nightly
7676
- run: cargo install cargo-careful
7777
- run: cargo careful test --all-features
78+
79+
# Test using `cargo miri`
80+
test-miri:
81+
runs-on: ubuntu-latest
82+
env:
83+
MIRIFLAGS: "-Zmiri-symbolic-alignment-check -Zmiri-strict-provenance"
84+
strategy:
85+
matrix:
86+
target:
87+
- x86_64-unknown-linux-gnu
88+
- s390x-unknown-linux-gnu
89+
steps:
90+
- uses: actions/checkout@v6
91+
- uses: dtolnay/rust-toolchain@nightly
92+
- run: rustup component add miri && cargo miri setup
93+
- run: cargo miri test --target ${{ matrix.target }} --all-features --lib

0 commit comments

Comments
 (0)