Skip to content

Commit 468c788

Browse files
cpudjc
authored andcommitted
CI: replace actions-rs w/ dtolnay/rust-toolchain.
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`.
1 parent 3a040dc commit 468c788

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ jobs:
3232
persist-credentials: false
3333

3434
- name: Install ${{ matrix.rust }} toolchain
35-
uses: actions-rs/toolchain@v1
35+
uses: dtolnay/rust-toolchain@master
3636
with:
3737
toolchain: ${{ matrix.rust }}
38-
override: true
3938

4039
- name: cargo check (default features)
4140
run: cargo check --all-targets
@@ -79,11 +78,7 @@ jobs:
7978
persist-credentials: false
8079

8180
- name: Install rust toolchain
82-
uses: actions-rs/toolchain@v1
83-
with:
84-
toolchain: nightly
85-
override: true
86-
default: true
81+
uses: dtolnay/rust-toolchain@nightly
8782

8883
- name: cargo doc (all features)
8984
run: cargo doc --all-features --no-deps
@@ -99,17 +94,11 @@ jobs:
9994
with:
10095
persist-credentials: false
10196
- name: Install rust toolchain
102-
uses: actions-rs/toolchain@v1
97+
uses: dtolnay/rust-toolchain@stable
10398
with:
104-
toolchain: stable
105-
override: true
106-
default: true
10799
components: rustfmt
108100
- name: Check formatting
109-
uses: actions-rs/cargo@v1
110-
with:
111-
command: fmt
112-
args: --all -- --check
101+
run: cargo fmt --all -- --check
113102

114103
clippy:
115104
name: Clippy
@@ -120,13 +109,7 @@ jobs:
120109
with:
121110
persist-credentials: false
122111
- name: Install rust toolchain
123-
uses: actions-rs/toolchain@v1
112+
uses: dtolnay/rust-toolchain@stable
124113
with:
125-
toolchain: stable
126-
override: true
127-
default: true
128114
components: clippy
129-
- uses: actions-rs/cargo@v1
130-
with:
131-
command: clippy
132-
args: --all-features -- -D warnings
115+
- run: cargo clippy --all-features -- --deny warnings

0 commit comments

Comments
 (0)