Skip to content

Commit f4c1193

Browse files
Merge pull request #396 from matthiasbeyer/replace-actions-rs
Replace actions rs
2 parents dc8103b + 5ce8cb6 commit f4c1193

File tree

2 files changed

+16
-46
lines changed

2 files changed

+16
-46
lines changed

.github/workflows/cron.yml

+5-15
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,12 @@ jobs:
2020
uses: actions/[email protected]
2121

2222
- name: Install toolchain
23-
uses: actions-rs/toolchain@v1
23+
uses: dtolnay/rust-toolchain@master
2424
with:
2525
toolchain: ${{ matrix.rust }}
26-
minimal: true
27-
override: true
2826

2927
- name: Run cargo check
30-
uses: actions-rs/cargo@v1
31-
with:
32-
command: check
33-
args: --all --all-features --examples
28+
run: cargo check --all --all-features --examples
3429

3530
clippy:
3631
needs: [check]
@@ -46,16 +41,11 @@ jobs:
4641
uses: actions/[email protected]
4742

4843
- name: Install toolchain
49-
uses: actions-rs/toolchain@v1
44+
uses: dtolnay/rust-toolchain@master
5045
with:
5146
toolchain: ${{ matrix.rust }}
52-
minimal: true
53-
override: true
5447
components: clippy
5548

56-
- name: Run cargo clippy
57-
uses: actions-rs/cargo@v1
58-
with:
59-
command: clippy
60-
args: --all-targets --all-features -- -D warnings
49+
- name: Run cargo check
50+
run: cargo clippy --all --all-features -- -D warnings
6151

.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)