Skip to content

Commit

Permalink
Cleanup workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
alecdotninja committed Jun 13, 2024
1 parent d828320 commit bd00b7b
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ jobs:
name: ⏱️ Benchmark
runs-on: ubuntu-latest

needs:
- build

steps:
- uses: actions/checkout@v3
- uses: Swatinem/[email protected]
- uses: actions/checkout@v4
- name: Run benchmarks
run: cargo bench --all

Expand All @@ -31,8 +27,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: Swatinem/[email protected]
- uses: actions/checkout@v4
- name: Build (release)
run: cargo build --all --release

Expand All @@ -41,8 +36,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: Swatinem/[email protected]
- uses: actions/checkout@v4
- name: Run Rustfmt
run: cargo fmt --all -- --check

Expand All @@ -51,8 +45,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: Swatinem/[email protected]
- uses: actions/checkout@v4
- name: Run Clippy
run: cargo clippy --all

Expand All @@ -61,23 +54,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: Swatinem/[email protected]
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --all

test_miri:
name: 🕵️ Test (Miri)
name: 🔬 Test (Miri)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: miri
- uses: Swatinem/[email protected]
- uses: actions/checkout@v4
- name: Setup Miri
run: |
rustup toolchain install nightly \
--profile minimal \
--component miri \
--component rust-src
cargo +nightly miri setup
- name: Run tests under Miri
env:
MIRIFLAGS: -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check
run: cargo +nightly miri test --all

0 comments on commit bd00b7b

Please sign in to comment.