Skip to content

Commit 031d4cf

Browse files
authored
Update actions to avoid Node.js 12 actions (#307)
* Update actions to avoid Node.js 12 actions * Use dtolnay/rust-toolchain
1 parent 8fba79b commit 031d4cf

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,21 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v3
1515
- name: Install Rust
16-
uses: actions-rs/toolchain@v1
16+
uses: dtolnay/rust-toolchain@stable
1717
with:
18-
profile: minimal
19-
toolchain: stable
20-
override: true
2118
components: rustfmt
22-
2319
- name: Check format
24-
uses: actions-rs/cargo@v1
25-
with:
26-
command: fmt
27-
args: -- --check
20+
run: cargo fmt --check
2821

2922
clippy:
3023
name: Clippy
3124
runs-on: ubuntu-latest
3225
steps:
3326
- uses: actions/checkout@v3
34-
- uses: actions-rs/toolchain@v1
27+
- uses: dtolnay/rust-toolchain@stable
3528
with:
36-
profile: minimal
37-
toolchain: stable
38-
override: true
3929
components: clippy
40-
- uses: actions-rs/cargo@v1
41-
with:
42-
command: clippy
43-
args: --all-targets --all-features -- -D warnings
30+
- run: cargo clippy --all-targets --all-features -- -D warnings
4431

4532
tests:
4633
name: Tests
@@ -61,9 +48,9 @@ jobs:
6148
steps:
6249
- uses: actions/checkout@v3
6350
- name: Install Rust
64-
uses: hecrj/setup-rust-action@v1
51+
uses: dtolnay/rust-toolchain@master
6552
with:
66-
rust-version: ${{ matrix.rust }}
53+
toolchain: ${{ matrix.rust }}
6754

6855
- name: Build System Info
6956
run: rustc --version

0 commit comments

Comments
 (0)