@@ -20,15 +20,11 @@ jobs:
2020 - name : Checkout
2121 uses : actions/checkout@v2
2222
23- - name : Install latest nightly
24- uses : actions-rs/ toolchain@v1
23+ - name : Install latest stable
24+ uses : dtolnay/rust- toolchain@stable
2525 with :
2626 toolchain : stable
27- override : true
28- components : rustfmt, clippy
2927
30- # `cargo check` command here will use installed `nightly`
31- # as it is set as an "override" for current directory
3228 - name : deal with rust cache
3329 uses : Swatinem/rust-cache@v1
3430
@@ -42,20 +38,16 @@ jobs:
4238 - name : Checkout
4339 uses : actions/checkout@v2
4440
45- - name : Install latest nightly
46- uses : actions-rs/ toolchain@v1
41+ - name : Install latest stable
42+ uses : dtolnay/rust- toolchain@stable
4743 with :
4844 toolchain : stable
49- override : true
50- components : rustfmt, clippy
5145
52- # `cargo check` command here will use installed `nightly`
53- # as it is set as an "override" for current directory
5446 - name : deal with rust cache
5547 uses : Swatinem/rust-cache@v1
5648
5749 - name : cargo build
58- run : cargo build --workspace -- all-features
50+ run : cargo build --all-features
5951
6052 cargo-clippy :
6153 runs-on : ubuntu-latest
@@ -64,25 +56,23 @@ jobs:
6456 - name : Checkout
6557 uses : actions/checkout@v2
6658
67- - name : Install latest nightly
68- uses : actions-rs/ toolchain@v1
59+ - name : Install latest stable
60+ uses : dtolnay/rust- toolchain@stable
6961 with :
7062 toolchain : stable
71- override : true
72- components : rustfmt, clippy
63+ components : clippy
7364
74- # `cargo check` command here will use installed `nightly`
75- # as it is set as an "override" for current directory
7665 - name : deal with rust cache
7766 uses : Swatinem/rust-cache@v1
67+ - run : cargo clippy --workspace --all-features --tests -- -Dwarnings
7868
79- # temporarily change to a self-maintained workflow
80- # see https://github.com/actions-rs/clippy-check/pull/158
81- - name : cargo clippy
82- uses : BobAnkh/clippy-check@master
83- with :
84- token : ${{ secrets.GITHUB_TOKEN }}
85- args : --all-targets --all-features --workspace --no-deps
69+ # temporarily change to a self-maintained workflow
70+ # see https://github.com/actions-rs/clippy-check/pull/158
71+ # - name: cargo clippy
72+ # uses: BobAnkh/clippy-check@master
73+ # with:
74+ # token: ${{ secrets.GITHUB_TOKEN }}
75+ # args: --all-targets --all-features --workspace --no-deps
8676
8777 cargo-fmt :
8878 runs-on : ubuntu-latest
@@ -91,15 +81,12 @@ jobs:
9181 - name : Checkout
9282 uses : actions/checkout@v2
9383
94- - name : Install latest nightly
95- uses : actions-rs/ toolchain@v1
84+ - name : Install latest stable
85+ uses : dtolnay/rust- toolchain@stable
9686 with :
9787 toolchain : stable
98- override : true
99- components : rustfmt, clippy
88+ components : rustfmt
10089
101- # `cargo check` command here will use installed `nightly`
102- # as it is set as an "override" for current directory
10390 - name : deal with rust cache
10491 uses : Swatinem/rust-cache@v1
10592
0 commit comments