Skip to content

Commit e18bda2

Browse files
committed
actions: msrv: Replace actions-rs with dtolnay
Signed-off-by: Matthias Beyer <[email protected]>
1 parent dc8103b commit e18bda2

File tree

1 file changed

+11
-31
lines changed

1 file changed

+11
-31
lines changed

.github/workflows/msrv.yml

+11-31
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ jobs:
1919
uses: actions/[email protected]
2020

2121
- name: Install toolchain
22-
uses: actions-rs/toolchain@v1
22+
uses: dtolnay/rust-toolchain@master
2323
with:
2424
toolchain: ${{ matrix.rust }}
25-
override: true
2625

2726
- name: Run cargo check
2827
if: matrix.rust != 'nightly'
@@ -53,25 +52,18 @@ jobs:
5352
uses: actions/[email protected]
5453

5554
- name: Install toolchain
56-
uses: actions-rs/toolchain@v1
55+
uses: dtolnay/rust-toolchain@master
5756
with:
5857
toolchain: ${{ matrix.rust }}
59-
override: true
6058

6159
- name: Run cargo test
6260
if: matrix.rust != 'nightly' && matrix.rust != '1.56.1'
63-
uses: actions-rs/cargo@v1
64-
with:
65-
command: test
66-
args: --all-features
61+
run: cargo test --all-features
6762

6863
- name: Run cargo test (nightly)
6964
if: matrix.rust == '1.59.0'
7065
continue-on-error: true
71-
uses: actions-rs/cargo@v1
72-
with:
73-
command: test
74-
args: --tests --all-features
66+
run: cargo test --tests --all-features
7567

7668
- name: Run cargo test (nightly)
7769
if: matrix.rust == 'nightly'
@@ -95,17 +87,13 @@ jobs:
9587
uses: actions/[email protected]
9688

9789
- name: Install toolchain
98-
uses: actions-rs/toolchain@v1
90+
uses: dtolnay/rust-toolchain@master
9991
with:
10092
toolchain: ${{ matrix.rust }}
101-
override: true
10293
components: rustfmt
10394

10495
- name: Run cargo fmt
105-
uses: actions-rs/cargo@v1
106-
with:
107-
command: fmt
108-
args: --all -- --check
96+
run: cargo fmt --all -- --check
10997

11098
clippy:
11199
needs: [check]
@@ -116,17 +104,12 @@ jobs:
116104
uses: actions/[email protected]
117105

118106
- name: Install toolchain
119-
uses: actions-rs/toolchain@v1
107+
uses: dtolnay/rust-toolchain@1.59.0
120108
with:
121-
toolchain: 1.59.0
122-
override: true
123109
components: clippy
124110

125111
- name: Run cargo clippy
126-
uses: actions-rs/cargo@v1
127-
with:
128-
command: clippy
129-
args: --all-targets --all-features -- -D warnings
112+
run: cargo clippy --all-targets --all-features -- -D warnings
130113

131114
check-examples:
132115
name: Check examples
@@ -143,14 +126,11 @@ jobs:
143126
uses: actions/[email protected]
144127

145128
- name: Install toolchain
146-
uses: actions-rs/toolchain@v1
129+
uses: dtolnay/rust-toolchain@master
147130
with:
148131
toolchain: ${{ matrix.rust }}
149-
override: true
132+
components: clippy
150133

151134
- name: Run cargo check
152-
uses: actions-rs/cargo@v1
153-
with:
154-
command: check
155-
args: --examples
135+
run: cargo check --examples
156136

0 commit comments

Comments
 (0)