From 00c2b3c6a1cdf67183cb62aa41e2d908f7908258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Laitl?= Date: Thu, 1 Dec 2022 10:14:16 +0100 Subject: [PATCH] CI: use stable clippy Using nightly one leads to having to resolve lints more frequently than rust releases, which is getting inconvenient. It also leads to a small compatibility issue with stable clippy: if we need to #[allow] a lint that is only present in nightly clippy, then stable clippy complains about unknown ling in the `allow`. --- .github/workflows/rust.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fba93d2..39daf53 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -47,7 +47,7 @@ jobs: command: test args: --features v6-test --verbose - fmt-and-clippy: + fmt: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -56,12 +56,23 @@ jobs: profile: minimal toolchain: nightly override: true - components: rustfmt, clippy + components: rustfmt - name: Rustfmt uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check + + clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: clippy - name: Clippy uses: actions-rs/cargo@v1 with: