Catch build failure on Windows-CI (Azure Pipelines) (#241)
* catch errors after build command * remove spaces * use %ERRORLEVEL% instead * move modification to CI command only * add extra nextline to prevent modification
This commit is contained in:
		
							parent
							
								
									dbe0d734b5
								
							
						
					
					
						commit
						20686d8f0f
					
				| 
						 | 
					@ -1,3 +1,4 @@
 | 
				
			||||||
 | 
					REM This script is for Windows-CI. It will additionally catch exit codes.
 | 
				
			||||||
call curl -o miniconda.exe --location https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe
 | 
					call curl -o miniconda.exe --location https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe
 | 
				
			||||||
call MiniConda.exe /S /D=%UserProfile%\Miniconda3
 | 
					call MiniConda.exe /S /D=%UserProfile%\Miniconda3
 | 
				
			||||||
set PATH=%PATH%;%UserProfile%\Miniconda3\Scripts
 | 
					set PATH=%PATH%;%UserProfile%\Miniconda3\Scripts
 | 
				
			||||||
| 
						 | 
					@ -20,11 +21,23 @@ git clone https://github.com/wmcbrine/PDCurses.git
 | 
				
			||||||
set PDCURSES_SRCDIR=%root_dir%/PDCurses
 | 
					set PDCURSES_SRCDIR=%root_dir%/PDCurses
 | 
				
			||||||
cd PDCurses
 | 
					cd PDCurses
 | 
				
			||||||
call nmake -f wincon/Makefile.vc
 | 
					call nmake -f wincon/Makefile.vc
 | 
				
			||||||
 | 
					IF NOT %ERRORLEVEL% EQU 0 (
 | 
				
			||||||
 | 
					    @echo "Build PDCurses failed."
 | 
				
			||||||
 | 
					    EXIT 1
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
REM Build LLVM
 | 
					REM Build LLVM
 | 
				
			||||||
cd /d %root_dir%
 | 
					cd /d %root_dir%
 | 
				
			||||||
call onnx-mlir/utils/install-mlir.cmd
 | 
					call onnx-mlir/utils/install-mlir.cmd
 | 
				
			||||||
 | 
					IF NOT %ERRORLEVEL% EQU 0 (
 | 
				
			||||||
 | 
					    @echo "Build MLIR failed."
 | 
				
			||||||
 | 
					    EXIT 1
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
REM Build onnx-mlir
 | 
					REM Build onnx-mlir
 | 
				
			||||||
cd /d %root_dir%
 | 
					cd /d %root_dir%
 | 
				
			||||||
call onnx-mlir/utils/install-onnx-mlir.cmd
 | 
					call onnx-mlir/utils/install-onnx-mlir.cmd
 | 
				
			||||||
 | 
					IF NOT %ERRORLEVEL% EQU 0 (
 | 
				
			||||||
 | 
					    @echo "Build onnx-mlir failed."
 | 
				
			||||||
 | 
					    EXIT 1
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
		Loading…
	
		Reference in New Issue