Skip to content

Commit 6198136

Browse files
committed
Always deny warnings in CI
1 parent d5278fd commit 6198136

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ on:
66
types: [opened, synchronize, reopened]
77

88
env:
9+
CARGO_TERM_COLOR: always
910
CARGO_TERM_VERBOSE: true
1011
LIBC_CI: 1
12+
RUSTDOCFLAGS: -Dwarnings
13+
RUSTFLAGS: -Dwarnings
14+
RUST_BACKTRACE: full
1115

1216
defaults:
1317
run:
@@ -41,6 +45,12 @@ jobs:
4145
TOOLCHAIN: ${{ matrix.toolchain }}
4246
steps:
4347
- uses: actions/checkout@v4
48+
# Remove `-Dwarnings` at the MSRV since lints may be different or buffier
49+
- name: Update RUSTFLAGS
50+
run: |
51+
set -eux
52+
[ "${{ matrix.toolchain }}" = "1.63.0" ] && echo 'RUSTFLAGS=' >> "$GITHUB_ENV" || true
53+
4454
- name: Setup Rust toolchain
4555
run: ./ci/install-rust.sh
4656

0 commit comments

Comments
 (0)