Skip to content

Commit

Permalink
Replace actions-rs with dtolnay/rust-toolchain
Browse files Browse the repository at this point in the history
actions-rs is unmaintained, the last commit is from March 2020.
https://github.com/actions-rs/toolchain

The Rust community recommends dtolnay/rust-toolchain these days, e.g.
https://blessed.rs/crates#section-tooling
  • Loading branch information
senekor committed Jul 23, 2023
1 parent 346a8b9 commit dd55694
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,9 @@ jobs:
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: Setup toolchain
uses: actions-rs/toolchain@v1.0.7
uses: dtolnay/rust-toolchain@0e66bd3e6b38ec0ad5312288c83e47c143e6b09e
with:
toolchain: ${{ matrix.rust }}
default: true

# run scripts as steps
- name: Check exercises
Expand All @@ -141,10 +140,9 @@ jobs:
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: Setup toolchain
uses: actions-rs/toolchain@v1.0.7
uses: dtolnay/rust-toolchain@0e66bd3e6b38ec0ad5312288c83e47c143e6b09e
with:
toolchain: stable
default: true

- name: Rust Format Version
run: rustfmt --version
Expand Down Expand Up @@ -177,10 +175,9 @@ jobs:
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: Setup toolchain
uses: actions-rs/toolchain@v1.0.7
uses: dtolnay/rust-toolchain@0e66bd3e6b38ec0ad5312288c83e47c143e6b09e
with:
toolchain: ${{ matrix.rust }}
default: true

# Clippy already installed on Stable, but not Beta.
# So, we must install here.
Expand Down Expand Up @@ -214,10 +211,9 @@ jobs:
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: Setup nightly toolchain
uses: actions-rs/toolchain@v1.0.7
uses: dtolnay/rust-toolchain@0e66bd3e6b38ec0ad5312288c83e47c143e6b09e
with:
toolchain: nightly
default: true

- name: Check exercises
env:
Expand Down

0 comments on commit dd55694

Please sign in to comment.