Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
ci: fail when build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nullishamy committed May 26, 2024
1 parent 23ad967 commit 5aef56c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ jobs:
python ./build.py macchiato --all-accents --zip -d $PWD/releases > macchiato.log 2>&1 &
python ./build.py frappe --all-accents --zip -d $PWD/releases > frappe.log 2>&1 &
python ./build.py latte --all-accents --zip -d $PWD/releases > latte.log 2>&1 &
wait
set -e
declare -i err=0 werr=0
while wait -fn || werr=$?; ((werr != 127)); do
err=$werr
if [[ $err -ne 0 ]]; then
echo "Build failure, abort"
cat *.log
exit 1
fi
done
cat *.log
Expand Down
1 change: 0 additions & 1 deletion sources/build/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def apply_tweak(self, key, default, value):
Subsitution(find=f"\\${key}: {default}", replace=f"${key}: {value}"),
)


IS_DARK = Suffix(true_value="-Dark", test=lambda ctx: ctx.flavor.dark)
IS_LIGHT = Suffix(true_value="-Light", test=lambda ctx: not ctx.flavor.dark)
IS_WINDOW_NORMAL = Suffix(
Expand Down

0 comments on commit 5aef56c

Please sign in to comment.