55
66variables :
77 agentPool : ' StlBuild-2020-03-28'
8- vcpkgLocation : ' $(Build.SourcesDirectory)/vcpkg'
98
109stages :
1110 - stage : Code_Format_Validation
12- displayName : " Code Format Validation"
11+ displayName : ' Code Format Validation'
1312 jobs :
1413 - job : Run_Code_Format_Validation
1514 timeoutInMinutes : 90
16- displayName : " Run Validation"
15+ displayName : ' Run Validation'
1716 pool :
1817 name : $(agentPool)
1918
2019 steps :
2120 - checkout : self
2221 clean : true
2322 submodules : true
24- # TRANSITION: Once issue #19 or #33 is resolved on https://github.com/lukka/CppBuildTasks we can drop
25- # building boost-build here.
26- - task : run-vcpkg@0
27- displayName : ' Setup environment variables for run-cmake'
28- timeoutInMinutes : 10
29- inputs :
30- setupOnly : true
31- vcpkgArguments : ' boost-build'
32- vcpkgDirectory : ' $(vcpkgLocation)'
33- vcpkgTriplet : ' x64-windows'
34- - task : run-cmake@0
23+ - script : |
24+ call "%PROGRAMFILES(X86)%\Microsoft Visual Studio\2019\Preview\Common7\Tools\VsDevCmd.bat" ^
25+ -arch=amd64 -host_arch=amd64 -no_logo
26+ cmake -G Ninja -DCMAKE_CXX_COMPILER=cl -DCMAKE_BUILD_TYPE=Release ^
27+ -S $(Build.SourcesDirectory)\tools -B $(Build.ArtifactStagingDirectory)\tools
28+ cd $(Build.ArtifactStagingDirectory)\tools
29+ cmake --build .
3530 displayName: 'Build Support Tools'
36- timeoutInMinutes : 2
37- inputs :
38- cmakeListsTxtPath : ' tools/CMakeSettings.json'
39- useVcpkgToolchainFile : true
40- configurationRegexFilter : ' .*x64-Release.*'
41- buildDirectory : $(Build.ArtifactStagingDirectory)/tools
4231 - task : BatchScript@1
4332 displayName : ' Enforce clang-format'
4433 timeoutInMinutes : 60
@@ -54,20 +43,24 @@ stages:
5443 failOnStandardError : true
5544 arguments : ' $(Build.ArtifactStagingDirectory)/tools/validate/validate.exe'
5645 - stage : Build_And_Test
57- displayName : " Build and Test the STL "
46+ displayName : ' Build and Test'
5847 jobs :
5948 - template : azure-devops/run-build.yml
6049 parameters :
6150 targetPlatform : x86
51+ vsDevCmdArch : x86
6252
6353 - template : azure-devops/run-build.yml
6454 parameters :
6555 targetPlatform : x64
56+ vsDevCmdArch : amd64
6657
6758 - template : azure-devops/run-build.yml
6859 parameters :
6960 targetPlatform : arm
61+ vsDevCmdArch : arm
7062
7163 - template : azure-devops/run-build.yml
7264 parameters :
7365 targetPlatform : arm64
66+ vsDevCmdArch : arm64
0 commit comments