Skip to content

Commit

Permalink
Match components in CI to rust-toolchain.toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 7, 2022
1 parent fd5bc07 commit 1fceb4a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
components: rust-src
- run: cargo test

nightly:
Expand All @@ -41,6 +42,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.31.0
with:
components: rust-src
- run: cargo check

clippy:
Expand All @@ -49,15 +52,19 @@ jobs:
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@clippy
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy, rust-src
- run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic

miri:
name: Miri
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@miri
- uses: dtolnay/rust-toolchain@nightly
with:
components: miri, rust-src
- run: cargo miri test
env:
MIRIFLAGS: -Zmiri-strict-provenance
Expand Down

0 comments on commit 1fceb4a

Please sign in to comment.