Skip to content

Commit

Permalink
CI: replace actions-rs w/ dtolnay/rust-toolchain.
Browse files Browse the repository at this point in the history
This commit replaces the `actions-rs/toolchain` action with
`dtolnay/rust-toolchain`. The former is no longer maintained.

Usages of `actions-rs/cargo` are replaced with direct invocation of the
relevant tooling installed by `dtolnay/rust-toolchain`.
  • Loading branch information
cpu authored and djc committed Mar 14, 2023
1 parent 3a040dc commit 468c788
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ jobs:
persist-credentials: false

- name: Install ${{ matrix.rust }} toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
override: true

- name: cargo check (default features)
run: cargo check --all-targets
Expand Down Expand Up @@ -79,11 +78,7 @@ jobs:
persist-credentials: false

- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
default: true
uses: dtolnay/rust-toolchain@nightly

- name: cargo doc (all features)
run: cargo doc --all-features --no-deps
Expand All @@ -99,17 +94,11 @@ jobs:
with:
persist-credentials: false
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
default: true
components: rustfmt
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

clippy:
name: Clippy
Expand All @@ -120,13 +109,7 @@ jobs:
with:
persist-credentials: false
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
default: true
components: clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -D warnings
- run: cargo clippy --all-features -- --deny warnings

0 comments on commit 468c788

Please sign in to comment.