diff options
-rw-r--r-- | .github/workflows/ci.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1312e8ea9..0cc3ab748 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,6 @@ jobs: CARGO_TERM_COLOR: always RUST_BACKTRACE: full RUSTC_FORCE_INCREMENTAL: 1 - RUSTFLAGS: -D warnings steps: - name: Configure git @@ -144,6 +143,11 @@ jobs: service_account_key: ${{ secrets.GCP_SA_KEY }} export_default_credentials: true + - name: Error on warning + # TODO(piscisaureus): enable this on Windows again. + if: "!matrix.use_sysroot && !startsWith(matrix.os, 'windows')" + run: echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV + - name: Configure canary build if: | matrix.job == 'test' && |