Skip to content

Commit c2e613b

Browse files
committed
set pipefail
1 parent e5e120f commit c2e613b

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
timeout-minutes: 5
8383
working-directory: ice-demos/cpp
8484
run: |
85+
set -o pipefail
8586
find . -name CMakeLists.txt -type f | while IFS= read -r file; do
8687
dir="$(dirname $file)";
8788
cmake -B "$dir/build" -S "$dir" -DIce_DEBUG=ON
@@ -133,6 +134,7 @@ jobs:
133134
timeout-minutes: 20
134135
working-directory: ice-demos/swift
135136
run: |
137+
set -o pipefail
136138
find . -name Package.swift -type f | while IFS= read -r file; do
137139
swift build --package-path "$(dirname $file)"
138140
done

.github/workflows/cpp.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
2828
- name: Run Clang Format
2929
run: |
30+
set -o pipefail
3031
find . -name "*.h" -o -name "*.cpp" | xargs clang-format-19 --style=file --fallback-style=none --Werror --dry-run
3132
3233
clang-tidy:
@@ -72,16 +73,18 @@ jobs:
7273
timeout-minutes: 30
7374
working-directory: ice-demos/cpp
7475
run: |
75-
find . -name CMakeLists.txt -type f | while IFS= read -r file; do
76-
dir="$(dirname $file)";
77-
cmake -B "$dir/build" -S "$dir" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DIce_DEBUG=ON
78-
cmake --build "$dir/build" --config Release
79-
done
76+
set -o pipefail
77+
find . -name CMakeLists.txt -type f | while IFS= read -r file; do
78+
dir="$(dirname $file)";
79+
cmake -B "$dir/build" -S "$dir" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DIce_DEBUG=ON
80+
cmake --build "$dir/build" --config Release
81+
done
8082
8183
- name: Run Clang Tidy
8284
working-directory: ice-demos/cpp
8385
run: |
84-
find . -name compile_commands.json -type f | while IFS= read -r file; do
85-
dir="$(dirname $file)";
86-
run-clang-tidy-19 -p $(dir) -j$(nproc) -quiet
87-
done
86+
set -o pipefail
87+
find . -name compile_commands.json -type f | while IFS= read -r file; do
88+
dir="$(dirname $file)";
89+
run-clang-tidy-19 -p $(dir) -j$(nproc) -quiet
90+
done

0 commit comments

Comments
 (0)