19
19
20
20
21
21
- name : Install toolchain
22
- uses : actions-rs/ toolchain@v1
22
+ uses : dtolnay/rust- toolchain@master
23
23
with :
24
24
toolchain : ${{ matrix.rust }}
25
- override : true
26
25
27
26
- name : Run cargo check
28
27
if : matrix.rust != 'nightly'
@@ -53,25 +52,18 @@ jobs:
53
52
54
53
55
54
- name : Install toolchain
56
- uses : actions-rs/ toolchain@v1
55
+ uses : dtolnay/rust- toolchain@master
57
56
with :
58
57
toolchain : ${{ matrix.rust }}
59
- override : true
60
58
61
59
- name : Run cargo test
62
60
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
67
62
68
63
- name : Run cargo test (nightly)
69
64
if : matrix.rust == '1.59.0'
70
65
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
75
67
76
68
- name : Run cargo test (nightly)
77
69
if : matrix.rust == 'nightly'
@@ -95,17 +87,13 @@ jobs:
95
87
96
88
97
89
- name : Install toolchain
98
- uses : actions-rs/ toolchain@v1
90
+ uses : dtolnay/rust- toolchain@master
99
91
with :
100
92
toolchain : ${{ matrix.rust }}
101
- override : true
102
93
components : rustfmt
103
94
104
95
- 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
109
97
110
98
clippy :
111
99
needs : [check]
@@ -116,17 +104,12 @@ jobs:
116
104
117
105
118
106
- name : Install toolchain
119
- uses : actions-rs/ toolchain@v1
107
+ uses : dtolnay/rust- toolchain@1.59.0
120
108
with :
121
- toolchain : 1.59.0
122
- override : true
123
109
components : clippy
124
110
125
111
- 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
130
113
131
114
check-examples :
132
115
name : Check examples
@@ -143,14 +126,11 @@ jobs:
143
126
144
127
145
128
- name : Install toolchain
146
- uses : actions-rs/ toolchain@v1
129
+ uses : dtolnay/rust- toolchain@master
147
130
with :
148
131
toolchain : ${{ matrix.rust }}
149
- override : true
132
+ components : clippy
150
133
151
134
- name : Run cargo check
152
- uses : actions-rs/cargo@v1
153
- with :
154
- command : check
155
- args : --examples
135
+ run : cargo check --examples
156
136
0 commit comments