[rust] Make CI fail on warnings

https://doc.rust-lang.org/stable/clippy/continuous_integration/github_actions.html
This commit is contained in:
Manav Rathi
2025-08-05 13:18:45 +05:30
parent 8d8ce6487f
commit 97d66a3afa

View File

@@ -15,6 +15,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RUSTFLAGS: -D warnings
jobs:
lint:
runs-on: ubuntu-latest
@@ -33,9 +36,9 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo fmt --check
- run: cargo clippy
- run: cargo clippy --all-targets --all-features
- run: cargo build