File tree Expand file tree Collapse file tree 2 files changed +6
-24
lines changed Expand file tree Collapse file tree 2 files changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -168,11 +168,8 @@ jobs:
168
168
with :
169
169
ref : " ${{ github.event.pull_request.head.sha }}"
170
170
- name : Install Rust
171
- uses : actions-rs/ toolchain@v1
171
+ uses : dtolnay/rust- toolchain@stable
172
172
with :
173
- profile : minimal
174
- toolchain : stable
175
- override : true
176
173
components : rustfmt
177
174
- name : Cache Cargo intermediate products
178
175
uses : actions/cache@v3
@@ -183,15 +180,9 @@ jobs:
183
180
ui/target
184
181
key : " ${{ runner.os }}-cargo-${{ hashFiles('ui/**/Cargo.lock') }}-2"
185
182
- name : Format server
186
- uses : actions-rs/cargo@v1
187
- with :
188
- command : fmt
189
- args : " --manifest-path ui/Cargo.toml --all --check"
183
+ run : cargo fmt --manifest-path ui/Cargo.toml --all --check
190
184
- name : Format top-crates
191
- uses : actions-rs/cargo@v1
192
- with :
193
- command : fmt
194
- args : " --manifest-path top-crates/Cargo.toml --check"
185
+ run : cargo fmt --manifest-path top-crates/Cargo.toml --check
195
186
- name : Build backend
196
187
run : |-
197
188
mkdir -p ui/target; docker run --rm -v $PWD/ui:/ui -v ~/.cargo/git:/root/.cargo/git -v ~/.cargo/registry:/root/.cargo/registry --workdir /ui rust:alpine sh -c '
Original file line number Diff line number Diff line change @@ -263,11 +263,8 @@ workflows:
263
263
- *checkout_pr
264
264
265
265
- name : " Install Rust"
266
- uses : actions-rs/ toolchain@v1
266
+ uses : dtolnay/rust- toolchain@stable
267
267
with :
268
- profile : minimal
269
- toolchain : stable
270
- override : true
271
268
components : rustfmt
272
269
273
270
- name : " Cache Cargo intermediate products"
@@ -280,16 +277,10 @@ workflows:
280
277
key : ${{ runner.os }}-cargo-${{ hashFiles('ui/**/Cargo.lock') }}-2
281
278
282
279
- name : " Format server"
283
- uses : actions-rs/cargo@v1
284
- with :
285
- command : fmt
286
- args : --manifest-path ui/Cargo.toml --all --check
280
+ run : cargo fmt --manifest-path ui/Cargo.toml --all --check
287
281
288
282
- name : " Format top-crates"
289
- uses : actions-rs/cargo@v1
290
- with :
291
- command : fmt
292
- args : --manifest-path top-crates/Cargo.toml --check
283
+ run : cargo fmt --manifest-path top-crates/Cargo.toml --check
293
284
294
285
- name : " Build backend"
295
286
run : >-
You can’t perform that action at this time.
0 commit comments