File tree Expand file tree Collapse file tree 1 file changed +13
-22
lines changed Expand file tree Collapse file tree 1 file changed +13
-22
lines changed Original file line number Diff line number Diff line change 24
24
steps :
25
25
- uses : actions/checkout@master
26
26
- id : install
27
- uses : actions-rs/toolchain@v1
28
- with :
29
- toolchain : stable
30
- override : true
27
+ run : |
28
+ rustup override set stable
29
+ rustup update stable
31
30
32
31
- name : restore build & cargo cache
33
32
uses : Swatinem/rust-cache@v1
@@ -129,16 +128,12 @@ jobs:
129
128
steps :
130
129
- uses : actions/checkout@master
131
130
- id : install
132
- uses : actions-rs/toolchain@v1
133
- with :
134
- toolchain : stable
135
- override : true
136
- components : rustfmt
131
+ run : |
132
+ rustup override set stable
133
+ rustup update stable
134
+ rustup component add rustfmt
137
135
138
- - uses : actions-rs/cargo@v1
139
- with :
140
- command : fmt
141
- args : -- --check
136
+ - run : cargo fmt -- --check
142
137
143
138
clippy :
144
139
name : Clippy
@@ -147,16 +142,12 @@ jobs:
147
142
steps :
148
143
- uses : actions/checkout@master
149
144
- id : install
150
- uses : actions-rs/toolchain@v1
151
- with :
152
- toolchain : stable
153
- override : true
154
- components : clippy
145
+ run : |
146
+ rustup override set stable
147
+ rustup update stable
148
+ rustup component add clippy
155
149
156
150
- name : restore build & cargo cache
157
151
uses : Swatinem/rust-cache@v1
158
152
159
- - uses : actions-rs/cargo@v1
160
- with :
161
- command : clippy
162
- args : --all-features --all-targets --workspace --locked -- -D warnings
153
+ - run : cargo clippy --all-features --all-targets --workspace --locked -- -D warnings
You can’t perform that action at this time.
0 commit comments