From d7d7befd1794d30e82e255569e07db029d1cd91f Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 27 Dec 2024 09:56:50 +0100 Subject: [PATCH] CI: Fail the build if `cargo hack` shows any warnings --- .github/workflows/CI.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a8a4e7e715..dc6780fe99 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -43,6 +43,9 @@ jobs: cargo-hack: runs-on: ubuntu-24.04 + env: + # Fail the build if there are any warnings + RUSTFLAGS: "-D warnings" steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable