Deny warnings in CI
This commit is contained in:
parent
fd38e78957
commit
e4145bf08b
9
.github/workflows/rust.yml
vendored
9
.github/workflows/rust.yml
vendored
@ -102,8 +102,15 @@ jobs:
|
||||
with:
|
||||
path: target
|
||||
key: ${{ runner.os }}-${{ matrix.target }}
|
||||
|
||||
# We have to append the "-D warnings" flag to .cargo/config rather than
|
||||
# using the RUSTFLAGS environment variable because if we set RUSTFLAGS
|
||||
# cargo will ignore the rustflags config in .cargo/config.
|
||||
- name: Check
|
||||
run: cd ${{ matrix.package }} && cargo check --features=${{ matrix.features }} --target=${{ matrix.target }}
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
echo -e '[target."cfg(all())"]\nrustflags = ["-D", "warnings"]' >> .cargo/config
|
||||
cd ${{ matrix.package }} && RUSTFLAGS=-Dwarnings cargo check --features=${{ matrix.features }} --target=${{ matrix.target }}
|
||||
|
||||
fmt:
|
||||
runs-on: ubuntu-latest
|
||||
|
Loading…
Reference in New Issue
Block a user