Skip to content

Commit 411f298

Browse files
committed
Always deny warnings in CI
(backport <rust-lang#4363>) (cherry picked from commit 6198136)
1 parent 19ee58a commit 411f298

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
@@ -7,8 +7,12 @@ on:
77
- libc-0.2
88

99
env:
10+
CARGO_TERM_COLOR: always
1011
CARGO_TERM_VERBOSE: true
1112
LIBC_CI: 1
13+
RUSTDOCFLAGS: -Dwarnings
14+
RUSTFLAGS: -Dwarnings
15+
RUST_BACKTRACE: full
1216

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

0 commit comments

Comments
 (0)