From 0721f643c408b99f7d1835b185491dfd4f464c36 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sat, 6 Dec 2025 13:38:14 -0600 Subject: [PATCH] Check for errors in build-windows.bat so CI job fails if build fails --- scripts/build-windows.bat | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/build-windows.bat b/scripts/build-windows.bat index ae71a63eb..db92f8bb0 100644 --- a/scripts/build-windows.bat +++ b/scripts/build-windows.bat @@ -58,16 +58,28 @@ goto bits_done ::---------------------------------------------------------:: qmake OpenRGB.pro CONFIG-=debug_and_release CONFIG+=release +IF %ERRORLEVEL% NEQ 0 ( + EXIT /B %ERRORLEVEL% +) + ::---------------------------------------------------------:: :: Run jom to execute the build :: ::---------------------------------------------------------:: jom +IF %ERRORLEVEL% NEQ 0 ( + EXIT /B %ERRORLEVEL% +) + ::---------------------------------------------------------:: :: Run windeployqt to copy the Qt dll files :: ::---------------------------------------------------------:: windeployqt --no-patchqt --no-quick-import --no-translations --no-system-d3d-compiler --no-compiler-runtime --no-opengl-sw --no-network .\release\ +IF %ERRORLEVEL% NEQ 0 ( + EXIT /B %ERRORLEVEL% +) + ::---------------------------------------------------------:: :: Rename the release folder :: ::---------------------------------------------------------::