Skip to content

Commit

Permalink
Specify toolchain version with with
Browse files Browse the repository at this point in the history
Using dtolnay/[email protected] makes dependabot keen to update it;
use dtolnay/rust-toolchain@master master instead with a toolchain
specifier so it doesn't

Signed-off-by: Sjoerd Simons <[email protected]>
  • Loading branch information
sjoerdsimons committed Feb 18, 2024
1 parent 3f3e80c commit 41ee5c0
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,41 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it
with:
toolchain: "1.70"
- run: cargo check --all-targets --all-features

fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.70
- uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it
with:
components: rustfmt
toolchain: "1.70"
components: rustfmt
- run: cargo fmt --all --check

test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it
with:
toolchain: "1.70"
- run: cargo test --all-targets --all-features

clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.70
- uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it
with:
components: clippy
toolchain: "1.70"
components: clippy
- run: cargo clippy --all-targets --all-features -- -D warnings

clippy-latest:
Expand Down

0 comments on commit 41ee5c0

Please sign in to comment.