Browse Source

ci: run miri also with tree-borrow model

Philipp Schuster 6 months ago
parent
commit
9f23b9a2b7
1 changed files with 4 additions and 3 deletions
  1. 4 3
      .github/workflows/_build-rust.yml

+ 4 - 3
.github/workflows/_build-rust.yml

@@ -98,8 +98,9 @@ jobs:
         run: cargo test --verbose
       - name: Unit Test with Miri
         if: inputs.do-miri
-        # "--tests" so that the doctests are skipped. Currently, the doctest
-        # in miri fails.
         run: |
           rustup component add miri
-          cargo miri test --tests
+          # Run with stack-borrow model
+          cargo miri test
+          # Run with tree-borrow model
+          MIRIFLAGS=-Zmiri-tree-borrows cargo +nightly miri test