Skip to content

Commit

Permalink
Disable miri isolation (#836)
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Wagner <[email protected]>
  • Loading branch information
nwagner84 committed Sep 21, 2024
1 parent 0538b89 commit 43e59b7
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ permissions:
env:
RUSTUP_MAX_RETRIES: 10
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: 1

jobs:
check:
Expand Down Expand Up @@ -189,27 +190,24 @@ jobs:
- run: cargo update
- run: cargo outdated --workspace --exit-code 1

miri-lib:
miri:
if: ${{ github.ref == 'refs/heads/main' }}
name: miri (lib)
name: "miri ${{ matrix.item.name }}"
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@miri
- uses: Swatinem/rust-cache@v2
- run: cargo miri test -p pica-record --lib --verbose

miri-doc:
if: ${{ github.ref == 'refs/heads/main' }}
name: miri (doc)
runs-on: ubuntu-latest
needs: test
needs: check
strategy:
matrix:
item:
- { name: "pica-record (lib)", package: "pica-record", flags: "--lib" }
- { name: "pica-record (doc)", package: "pica-record", flags: "--doc" }
env:
MIRIFLAGS: -Zmiri-disable-isolation
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@miri
- uses: Swatinem/rust-cache@v2
- run: cargo miri test -p pica-record --doc --verbose
- run: |
cargo miri test -p ${{ matrix.item.package }} ${{ matrix.item.flags }}
docs:
runs-on: ubuntu-latest
Expand All @@ -224,8 +222,7 @@ jobs:
- deny
- fmt
- fuzz
- miri-lib
- miri-doc
- miri
- outdated
- test
- udeps
Expand Down

0 comments on commit 43e59b7

Please sign in to comment.