Skip to content

Commit

Permalink
Use github action dtolnay/rust-toolchain@master instead of actions-rs…
Browse files Browse the repository at this point in the history
…/toolchain@v1

actions-rs/toolchain@v1 uses deprecated features and has not been updated for years
  • Loading branch information
jannic committed Feb 28, 2023
1 parent 010dc85 commit ed9e0c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
# embedded-hal-async needs nightly.
# Use a pinned version to avoid spontaneous breakages (new clippy lints are added often)
toolchain: nightly-2022-11-22
override: true
components: clippy
- run: cargo clippy -- --deny=warnings
4 changes: 1 addition & 3 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- run: cargo fmt --check
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true

- run: sed -i '/nightly-only/d' Cargo.toml
if: matrix.rust != 'nightly'
Expand Down

0 comments on commit ed9e0c1

Please sign in to comment.