From d84cf1aec56c9948f4f22dfbbbd331f61c32b132 Mon Sep 17 00:00:00 2001
From: Mike Taves <mwtoews@gmail.com>
Date: Sat, 22 Jun 2024 12:09:30 +1200
Subject: [PATCH] CI: catch non-zero %ERRORLEVEL%

---
 .github/workflows/ci.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9f2c95f828..73760cccc3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -398,7 +398,9 @@ jobs:
           -D BUILD_SHARED_LIBS=ON ^
           -D USE_CCACHE=ON ^
           ..
+        IF %ERRORLEVEL% NEQ 0 exit
         cmake --build . --config ${{ matrix.ci.build_type }} -j 4
+        IF %ERRORLEVEL% NEQ 0 exit
         ccache --show-stats --verbose
 
     - name: Save build cache