1212 with :
1313 submodules : true
1414 - name : Install stable
15- uses : actions-rs/ toolchain@v1
15+ uses : dtolnay/rust- toolchain@stable
1616 with :
17- profile : minimal
18- toolchain : stable
1917 components : rustfmt
2018 - name : cargo fmt --check
2119 uses : actions-rs/cargo@v1
3432 with :
3533 submodules : true
3634 - name : Install ${{ matrix.toolchain }}
37- uses : actions-rs/ toolchain@v1
35+ uses : dtolnay/rust- toolchain@master
3836 with :
39- profile : minimal
4037 toolchain : ${{ matrix.toolchain }}
41- default : true
4238 components : clippy
4339 - name : cargo clippy
4440 uses : actions-rs/clippy-check@v1
5248 with :
5349 submodules : true
5450 - name : Install nightly
55- uses : actions-rs/toolchain@v1
56- with :
57- profile : minimal
58- toolchain : nightly
59- default : true
51+ uses : dtolnay/rust-toolchain@nightly
6052 - name : cargo doc
6153 uses : actions-rs/cargo@v1
6254 with :
@@ -72,17 +64,14 @@ jobs:
7264 with :
7365 submodules : true
7466 - name : Install stable
75- uses : actions-rs/toolchain@v1
76- with :
77- profile : minimal
78- toolchain : stable
67+ uses : dtolnay/rust-toolchain@stable
7968 - name : cargo install cargo-hack
8069 uses : taiki-e/install-action@cargo-hack
8170 - name : cargo hack
8271 uses : actions-rs/cargo@v1
8372 with :
8473 command : hack
85- args : --feature-powerset check --all-targets
74+ args : --feature-powerset check --lib --tests
8675 msrv :
8776 runs-on : ubuntu-latest
8877 # we use a matrix here just because env can't be used in job names
@@ -95,12 +84,10 @@ jobs:
9584 - uses : actions/checkout@v3
9685 with :
9786 submodules : true
98- - name : Install ${{ matrix.toolchain }}
99- uses : actions-rs/ toolchain@v1
87+ - name : Install ${{ matrix.msrv }}
88+ uses : dtolnay/rust- toolchain@master
10089 with :
101- profile : minimal
10290 toolchain : ${{ matrix.msrv }}
103- default : true
10491 - name : cargo +${{ matrix.msrv }} check
10592 uses : actions-rs/cargo@v1
10693 with :
0 commit comments