From 10ed8c0472af2e20afb30de922630bdd024c55f6 Mon Sep 17 00:00:00 2001 From: lukas0008 Date: Thu, 22 Aug 2024 13:58:03 +0200 Subject: [PATCH] ci: Separate clippy and build for build release job --- .github/workflows/rust.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a4d27a193..af6568d7b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -65,4 +65,17 @@ jobs: - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - run: cargo build --verbose --release - - run: cargo clippy --release --all-targets --all-features --no-default-features -- -D warnings + clippy_release: + name: Run lints in release mode + runs-on: ubuntu-latest + strategy: + matrix: + toolchain: + - stable + + steps: + - uses: actions/checkout@v4 + + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + + - run: cargo clippy --release --all-targets --all-features --no-default-features -- -D warnings \ No newline at end of file