Skip to content

Commit

Permalink
CI run clippy latest nightly without denying warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Jun 12, 2024
1 parent d35d802 commit 1ac29a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,27 @@ jobs:
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo bash ./.github/workflows/install-deps.sh
- name: Install Rust nightly (stable date version)
- name: Install Rust nightly (latest and stable date version)
run: |
STABLE_DATE=$(cargo clippy --version | perl -ne 'print $& if /\b\d{4}-\d{2}-\d{2}\b/')
echo "STABLE_DATE=$STABLE_DATE" >> $GITHUB_ENV
rustup toolchain install nightly
rustup component add clippy --toolchain nightly
rustup toolchain install nightly-$STABLE_DATE
rustup component add clippy --toolchain nightly-$STABLE_DATE
echo "Stable version: $(cargo clippy --version)"
echo "Nightly version: $(cargo +nightly clippy --version)"
echo "Near stable nightly version: $(cargo +nightly-$STABLE_DATE clippy --version)"
- name: Restore cargo caches
uses: Swatinem/rust-cache@v1
- name: Run clippy
run: cargo clippy --all-features --tests --examples -- -D warnings
- name: Run clippy nightly-${{ env.STABLE_DATE }} for benches
run: cargo +nightly-${{ env.STABLE_DATE }} clippy --all-features --benches -- -D warnings -A clippy::incompatible_msrv
- name: Run clippy nightly-latest without denying warnings
run: cargo +nightly clippy --all-features --tests --examples

check:
strategy:
Expand Down

0 comments on commit 1ac29a0

Please sign in to comment.