Skip to content

Commit

Permalink
add more miri tests
Browse files Browse the repository at this point in the history
Extracted from a patch by Benno Lossin.

Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Dec 2, 2024
1 parent 93a170a commit 4f49949
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/safety.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ jobs:
RUSTFLAGS: "--cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=leak"
miri:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flags: [
"",
"-Zmiri-tree-borrows",
"-Zmiri-strict-provenance",
"-Zmiri-tree-borrows -Zmiri-strict-provenance"
]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -48,10 +57,10 @@ jobs:
with:
toolchain: ${{ env.NIGHTLY }}
components: miri
- name: cargo miri test
- name: ${{ matrix.flags }} cargo miri test
run: cargo miri test
env:
MIRIFLAGS: ""
MIRIFLAGS: ${{ matrix.flags }}
# loom:
# runs-on: ubuntu-latest
# steps:
Expand Down

0 comments on commit 4f49949

Please sign in to comment.