From f4408bda362ddce57affce3f6ed49178ced9ab47 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Thu, 13 Mar 2025 13:12:48 +0100 Subject: [PATCH] Fix failure from cargo not propagating because of pipe --- .github/workflows/test-rustc-targets.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-rustc-targets.yml b/.github/workflows/test-rustc-targets.yml index 4608759d..40296d5e 100644 --- a/.github/workflows/test-rustc-targets.yml +++ b/.github/workflows/test-rustc-targets.yml @@ -29,7 +29,9 @@ jobs: - name: Test with `RUSTFLAGS=--cfg=rustc_target_test cargo test --lib` id: test continue-on-error: true # We want to open an issue if it fails - run: cargo test --lib 2>&1 | tee test_output.txt + run: | + set -o pipefail + cargo test --lib 2>&1 | tee test_output.txt env: RUSTFLAGS: --cfg=rustc_target_test