Skip to content

Commit 0721f64

Browse files
Check for errors in build-windows.bat so CI job fails if build fails
1 parent 0b5010c commit 0721f64

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

scripts/build-windows.bat

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,28 @@ goto bits_done
5858
::---------------------------------------------------------::
5959
qmake OpenRGB.pro CONFIG-=debug_and_release CONFIG+=release
6060

61+
IF %ERRORLEVEL% NEQ 0 (
62+
EXIT /B %ERRORLEVEL%
63+
)
64+
6165
::---------------------------------------------------------::
6266
:: Run jom to execute the build ::
6367
::---------------------------------------------------------::
6468
jom
6569

70+
IF %ERRORLEVEL% NEQ 0 (
71+
EXIT /B %ERRORLEVEL%
72+
)
73+
6674
::---------------------------------------------------------::
6775
:: Run windeployqt to copy the Qt dll files ::
6876
::---------------------------------------------------------::
6977
windeployqt --no-patchqt --no-quick-import --no-translations --no-system-d3d-compiler --no-compiler-runtime --no-opengl-sw --no-network .\release\
7078

79+
IF %ERRORLEVEL% NEQ 0 (
80+
EXIT /B %ERRORLEVEL%
81+
)
82+
7183
::---------------------------------------------------------::
7284
:: Rename the release folder ::
7385
::---------------------------------------------------------::

0 commit comments

Comments
 (0)