Skip to content

Commit 7ec4835

Browse files
committed
ci: Does set -e really make it work??
1 parent 030834b commit 7ec4835

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,22 @@ jobs:
250250
run: |
251251
export TARGET_WORKSPACE="$(pwd)/projects"
252252
export HOST="${{ matrix.build.toolchain }}"
253-
source docs/env.sh
253+
set -e
254+
if ! source docs/env.sh; then
255+
echo "env.sh failed with exit code $?"
256+
exit 1
257+
fi
254258
make -j"$(nproc)" TARGET=${{ matrix.build.frontend }}
255259
256260
- name: Make package
257261
run: |
258262
export TARGET_WORKSPACE="$(pwd)/projects"
259263
export HOST="${{ matrix.build.toolchain }}"
260-
source docs/env.sh
264+
set -e
265+
if ! source docs/env.sh; then
266+
echo "env.sh failed with exit code $?"
267+
exit 1
268+
fi
261269
make package TARGET=${{ matrix.build.frontend }}
262270
263271
# Can't avoid `upload-artifact` zipping the package

0 commit comments

Comments
 (0)