@@ -77,23 +77,35 @@ jobs:
77
77
- name : Install dependencies
78
78
if : matrix.os == 'ubuntu-latest'
79
79
run : sudo bash ./.github/workflows/install-deps.sh
80
- - name : Install Rust nightly (stable date version)
80
+ - name : Install Rust nightly (latest and stable date version)
81
81
id : install-rust
82
82
run : |
83
83
STABLE_DATE=$(cargo clippy --version | perl -ne 'print $& if /\b\d{4}-\d{2}-\d{2}\b/')
84
84
echo "stable_date=$STABLE_DATE" >> $GITHUB_OUTPUT
85
85
86
+ rustup toolchain install nightly
87
+ rustup component add clippy --toolchain nightly
86
88
rustup toolchain install nightly-$STABLE_DATE
87
89
rustup component add clippy --toolchain nightly-$STABLE_DATE
88
90
89
91
echo "Stable version: $(cargo clippy --version)"
92
+ echo "Nightly version: $(cargo +nightly clippy --version)"
90
93
echo "Near stable nightly version: $(cargo +nightly-$STABLE_DATE clippy --version)"
91
94
- name : Restore cargo caches
92
95
uses : Swatinem/rust-cache@v1
93
96
- name : Run clippy
94
97
run : cargo clippy --all-features --tests --examples -- -D warnings
95
98
- name : Run clippy nightly-${{ steps.install-rust.outputs.stable_date }} for benches
96
99
run : cargo +nightly-${{ steps.install-rust.outputs.stable_date }} clippy --all-features --benches -- -D warnings -A clippy::incompatible_msrv
100
+ - name : Run clippy nightly-latest without denying warnings
101
+ run : |
102
+ cargo +nightly clippy --all-features --tests --examples
103
+
104
+ echo "## clippy nightly output" >> $GITHUB_STEP_SUMMARY
105
+ echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
106
+ # Run it again so there is no noise like "Compiling xxx" and "Checking xxx" in the output.
107
+ CARGO_TERM_COLOR=never cargo +nightly clippy --all-features --tests --examples 2>> $GITHUB_STEP_SUMMARY
108
+ echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
97
109
98
110
check :
99
111
strategy :
0 commit comments