Skip to content

Commit

Permalink
Add more miri jobs in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Aug 28, 2023
1 parent e854236 commit c892422
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
matrix:
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
rust: [nightly, beta, stable, 1.64]
timeout-minutes: 45
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
Expand Down Expand Up @@ -51,19 +51,26 @@ jobs:
miri:
name: Miri
runs-on: ubuntu-latest
timeout-minutes: 45
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
flags: [--no-default-features, "", --all-features]
env:
MIRIFLAGS: -Zmiri-strict-provenance
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@miri
- run: cargo miri setup
- run: cargo miri test
env:
MIRIFLAGS: -Zmiri-strict-provenance
with:
target: ${{ matrix.target }}
- run: cargo miri setup --target ${{ matrix.target }} ${{ matrix.flags }}
- run: cargo miri test --target ${{ matrix.target }} ${{ matrix.flags }}

fuzz:
name: Fuzz
runs-on: ubuntu-latest
timeout-minutes: 45
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
Expand All @@ -84,7 +91,7 @@ jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
timeout-minutes: 45
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@clippy
Expand All @@ -93,7 +100,7 @@ jobs:
docs:
name: docs
runs-on: ubuntu-latest
timeout-minutes: 45
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
Expand All @@ -106,7 +113,7 @@ jobs:
fmt:
name: fmt
runs-on: ubuntu-latest
timeout-minutes: 45
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
Expand All @@ -118,7 +125,7 @@ jobs:
name: Outdated
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
timeout-minutes: 45
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/install@cargo-outdated
Expand Down

0 comments on commit c892422

Please sign in to comment.