exit on fetch-cross-compile failure, not proceed

This commit is contained in:
nhmall
2022-12-01 23:58:14 -05:00
parent 233e4a41af
commit cc231e47c0

View 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'