]> granicus.if.org Git - nethack/commitdiff
exit on fetch-cross-compile failure, not proceed
authornhmall <nhmall@nethack.org>
Fri, 2 Dec 2022 04:58:14 +0000 (23:58 -0500)
committernhmall <nhmall@nethack.org>
Fri, 2 Dec 2022 04:58:14 +0000 (23:58 -0500)
azure-pipelines.yml

index 25e0310dd6c4087f7e3bad716ab5bcb7db7c24b9..49d105be4211fa65ed1c1f4b92f6e067afad6c8e 100644 (file)
@@ -235,7 +235,10 @@ steps:
     cd ../..
     make fetch-lua
     sh sys/msdos/fetch-cross-compiler.sh
-    make LUA_VERSION=5.4.4 WANT_WIN_TTY=1 WANT_WIN_CURSES=1 CROSS_TO_MSDOS=1 package
+    retVal=$?
+    if [ $retVal -eq 0 ]; then
+        make LUA_VERSION=5.4.4 WANT_WIN_TTY=1 WANT_WIN_CURSES=1 CROSS_TO_MSDOS=1 package
+    fi
   condition: and(eq( variables['Agent.OS'], 'Linux' ), eq( variables.toolchain, 'cross'))
   workingDirectory: $(Agent.BuildDirectory)/$(netHackPath)
   displayName: 'Building MSDOS build'