File tree Expand file tree Collapse file tree 1 file changed +16
-21
lines changed
Expand file tree Collapse file tree 1 file changed +16
-21
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,13 @@ jobs:
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v6
15- - uses : actions-rs/toolchain@v1
15+
16+ - name : Set up Rust toolchain
17+ uses : dtolnay/rust-toolchain@master
1618 with :
17- profile : minimal
1819 toolchain : stable
19- components : rustfmt
20- - uses : actions-rs/cargo@v1
21- with :
22- command : fmt
23- args : --all -- --check
20+
21+ - run : cargo fmt --all -- --check
2422 clippy :
2523 name : Clippy
2624 runs-on : ubuntu-latest
@@ -33,29 +31,26 @@ jobs:
3331 cargo-args : " "
3432 steps :
3533 - uses : actions/checkout@v6
36- - uses : actions-rs/toolchain@v1
37- with :
38- profile : minimal
39- toolchain : ${{ matrix.toolchain }}
40- components : clippy
41- - uses : actions-rs/cargo@v1
34+
35+ - name : Set up Rust toolchain
36+ uses : dtolnay/rust-toolchain@master
4237 with :
4338 toolchain : ${{ matrix.toolchain }}
44- command : clippy
45- args : ${{ matrix.cargo-args }} -- -D warnings
39+
40+ - run : " cargo @${{ matrix.toolchain }} clippy ${{ matrix.cargo-args }} -- -D warnings"
4641 package :
4742 name : Cargo package
4843 runs-on : ubuntu-latest
4944 steps :
5045 - uses : actions/checkout@v6
51- - uses : actions-rs/toolchain@v1
46+
47+ - name : Set up Rust toolchain
48+ uses : dtolnay/rust-toolchain@master
5249 with :
53- profile : minimal
5450 toolchain : stable
55- components : rustfmt
56- - uses : actions-rs/cargo@v1
57- with :
58- command : package
51+
52+ - name : Package
53+ run : cargo package
5954 build_and_test :
6055 name : Build and test
6156 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments