Skip to content

Commit

Permalink
Set -o pipefail in CI (#5473)
Browse files Browse the repository at this point in the history
By default `boom | tee bar` will have `tee`'s exit code, with this
option `boom`'s exit code is propagated.

actions/runner-images#4459
  • Loading branch information
robertbastian authored Sep 3, 2024
1 parent 0394db7 commit a894aaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/artifacts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ jobs:
mkdir -p benchmarks/perf/${{ matrix.component }}
- name: Run benchmark
shell: /usr/bin/bash -o pipefail -e {0}
run: |
cargo bench --features bench --manifest-path ${{ matrix.component }}/Cargo.toml -- --output-format bencher | tee benchmarks/perf/${{ matrix.component }}/output.txt;
Expand Down Expand Up @@ -505,10 +506,12 @@ jobs:
mkdir -p benchmarks/binsize/gz
- name: Measure size of executables (wasm)
shell: /usr/bin/bash -o pipefail -e {0}
run: |
cargo run --package icu_benchmark_binsize -- wasmpkg/wasm-opt wasm | tee benchmarks/binsize/wasm/output.txt
- name: Measure size of executables (gz)
shell: /usr/bin/bash -o pipefail -e {0}
run: |
cargo run --package icu_benchmark_binsize -- wasmpkg/wasm-opt gz | tee benchmarks/binsize/gz/output.txt
Expand Down

0 comments on commit a894aaa

Please sign in to comment.