Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 7712297

Browse files
committed
Set RUSTFLAGS in CI to deny warnings
.. this will keep us from re-introducing any new warnings and force us to handle them.
1 parent 4b7d003 commit 7712297

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
- name: Check formatting
4343
if: matrix.check-fmt
4444
run: rustup component add rustfmt && cargo fmt --all -- --check
45+
- name: Set RUSTFLAGS to deny warnings
46+
if: "matrix.toolchain == 'stable'"
47+
run: echo "RUSTFLAGS=-D warnings" >> "$GITHUB_ENV"
4548
- name: Test on Rust ${{ matrix.toolchain }}
4649
run: |
4750
cargo test

0 commit comments

Comments
 (0)