Skip to content

Commit fb3b740

Browse files
committed
ci: replace actions-rs/toolchain with dtolnay/rust-toolchain
Signed-off-by: Martin Kröning <[email protected]>
1 parent 24c5f81 commit fb3b740

File tree

1 file changed

+6
-35
lines changed

1 file changed

+6
-35
lines changed

.github/workflows/build.yml

+6-35
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
21-
- name: Install stable toolchain
22-
uses: actions-rs/toolchain@v1
23-
with:
24-
profile: minimal
25-
toolchain: stable
26-
override: true
20+
- uses: dtolnay/rust-toolchain@stable
2721

2822
- name: Run cargo check
2923
uses: actions-rs/cargo@v1
@@ -35,13 +29,7 @@ jobs:
3529
runs-on: ubuntu-latest
3630
steps:
3731
- uses: actions/checkout@v4
38-
39-
- name: Install stable toolchain
40-
uses: actions-rs/toolchain@v1
41-
with:
42-
profile: minimal
43-
toolchain: stable
44-
override: true
32+
- uses: dtolnay/rust-toolchain@stable
4533

4634
- name: Run cargo test
4735
uses: actions-rs/cargo@v1
@@ -53,13 +41,7 @@ jobs:
5341
runs-on: ubuntu-latest
5442
steps:
5543
- uses: actions/checkout@v4
56-
57-
- name: Install nightly toolchain
58-
uses: actions-rs/toolchain@v1
59-
with:
60-
profile: minimal
61-
toolchain: nightly
62-
override: true
44+
- uses: dtolnay/rust-toolchain@nightly
6345

6446
- name: Run cargo test --features unstable
6547
uses: actions-rs/cargo@v1
@@ -72,13 +54,7 @@ jobs:
7254
runs-on: ubuntu-latest
7355
steps:
7456
- uses: actions/checkout@v4
75-
76-
- name: Install nightly toolchain
77-
uses: actions-rs/toolchain@v1
78-
with:
79-
profile: minimal
80-
toolchain: nightly
81-
override: true
57+
- uses: dtolnay/rust-toolchain@nightly
8258

8359
- name: Run cargo test --features very_unstable
8460
uses: actions-rs/cargo@v1
@@ -92,14 +68,9 @@ jobs:
9268
runs-on: ubuntu-latest
9369
steps:
9470
- uses: actions/checkout@v4
95-
96-
- name: Install stable toolchain
97-
uses: actions-rs/toolchain@v1
71+
- uses: dtolnay/rust-toolchain@stable
9872
with:
99-
profile: minimal
100-
toolchain: stable
101-
override: true
102-
components: rustfmt, clippy
73+
components: clippy, rustfmt
10374

10475
- name: Run cargo fmt
10576
uses: actions-rs/cargo@v1

0 commit comments

Comments
 (0)