2019-10-31 23:09:52 +00:00
|
|
|
# Windows Implementation Library Pipeline
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: BuildAndTest
|
|
|
|
timeoutInMinutes: 360
|
|
|
|
|
|
|
|
pool:
|
2023-02-22 21:12:56 +00:00
|
|
|
vmImage: 'windows-2022'
|
2019-10-31 23:09:52 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- script: |
|
|
|
|
choco install llvm
|
|
|
|
if %ERRORLEVEL% NEQ 0 goto :eof
|
|
|
|
echo ##vso[task.setvariable variable=PATH]%PATH%;C:\Program Files\LLVM\bin
|
|
|
|
displayName: 'Install Clang'
|
|
|
|
|
|
|
|
- script: |
|
2023-02-22 21:12:56 +00:00
|
|
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
|
2019-10-31 23:09:52 +00:00
|
|
|
if %ERRORLEVEL% NEQ 0 goto :eof
|
|
|
|
|
|
|
|
call scripts\init_all.cmd --fast
|
|
|
|
if %ERRORLEVEL% NEQ 0 goto :eof
|
|
|
|
|
|
|
|
call scripts\build_all.cmd
|
|
|
|
displayName: 'Build x86'
|
|
|
|
|
|
|
|
- script: |
|
2023-02-22 21:12:56 +00:00
|
|
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
2019-10-31 23:09:52 +00:00
|
|
|
if %ERRORLEVEL% NEQ 0 goto :eof
|
|
|
|
|
|
|
|
call scripts\init_all.cmd --fast
|
|
|
|
if %ERRORLEVEL% NEQ 0 goto :eof
|
|
|
|
|
|
|
|
call scripts\build_all.cmd
|
|
|
|
displayName: 'Build x64'
|
|
|
|
|
2023-02-22 21:12:56 +00:00
|
|
|
# NOTE: We run the tests in the 32-bit cross-tools window out of convenience as this adds all necessary directories to
|
|
|
|
# the PATH that are necessary for finding the ASan/UBSan DLLs
|
|
|
|
- script: |
|
|
|
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_x86.bat""
|
|
|
|
call scripts\runtests.cmd ~[LocalOnly]
|
2019-10-31 23:09:52 +00:00
|
|
|
displayName: 'Run Tests'
|