Skip to content

Commit 329a7e1

Browse files
committed
ci: use dtolnay/rust-toolchain instead of
unmaintained actions-rs/toolchain
1 parent e5de3cd commit 329a7e1

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ jobs:
1414
os: [ubuntu-latest, macOS-latest, windows-latest]
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: actions-rs/toolchain@v1
18-
with:
19-
profile: minimal
20-
toolchain: stable
21-
override: true
17+
- uses: dtolnay/rust-toolchain@stable
2218
- run: cargo check
2319

2420
test:
@@ -29,23 +25,15 @@ jobs:
2925
os: [ubuntu-latest, macOS-latest, windows-latest]
3026
steps:
3127
- uses: actions/checkout@v4
32-
- uses: actions-rs/toolchain@v1
33-
with:
34-
profile: minimal
35-
toolchain: stable
36-
override: true
28+
- uses: dtolnay/rust-toolchain@stable
3729
- run: cargo test
3830

3931
fmt:
4032
name: cargo fmt --all -- --check
4133
runs-on: ubuntu-latest
4234
steps:
4335
- uses: actions/checkout@v4
44-
- uses: actions-rs/toolchain@v1
45-
with:
46-
profile: minimal
47-
toolchain: stable
48-
override: true
36+
- uses: dtolnay/rust-toolchain@stable
4937
- run: rustup component add rustfmt
5038
- run: cargo fmt --all -- --check
5139

@@ -57,11 +45,7 @@ jobs:
5745
os: [ubuntu-latest, macOS-latest, windows-latest]
5846
steps:
5947
- uses: actions/checkout@v4
60-
- uses: actions-rs/toolchain@v1
61-
with:
62-
profile: minimal
63-
toolchain: stable
64-
override: true
48+
- uses: dtolnay/rust-toolchain@stable
6549
- run: rustup component add clippy
6650
- run: cargo clippy -- -D warnings
6751

@@ -98,11 +82,7 @@ jobs:
9882
outputs CODECOV_FLAGS
9983
10084
- name: rust toolchain ~ install
101-
uses: actions-rs/toolchain@v1
102-
with:
103-
toolchain: ${{ steps.vars.outputs.TOOLCHAIN }}
104-
default: true
105-
profile: minimal # minimal component installation (ie, no documentation)
85+
uses: dtolnay/rust-toolchain@nightly
10686
- name: Test
10787
run: cargo test ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
10888
env:

0 commit comments

Comments
 (0)