ci: Separate clippy and build for build release job

This commit is contained in:
lukas0008
2024-08-22 13:58:03 +02:00
parent b27f6c245b
commit 10ed8c0472

View File

@@ -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