From 0a9c66ef075da960df691594fc0576b1d923c77b Mon Sep 17 00:00:00 2001 From: InvalidUsernameException Date: Tue, 11 Feb 2025 20:44:38 +0100 Subject: [PATCH] Meta: Make missing optipng fatal in CI --- Meta/check-png-sizes.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Meta/check-png-sizes.sh b/Meta/check-png-sizes.sh index 2512171d1f2..392cf8e5484 100755 --- a/Meta/check-png-sizes.sh +++ b/Meta/check-png-sizes.sh @@ -9,6 +9,10 @@ script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P) cd "${script_path}/.." if ! command -v optipng >/dev/null ; then + if [[ "$GITHUB_ACTIONS" == "true" ]]; then + echo 'optipng is not installed, failing check because running in CI.' + exit 1 + fi echo 'optipng is not installed, skipping png size check.' echo 'Please install optipng for your system to run this check.' exit 0