|
29 | 29 |
|
30 | 30 | variables: |
31 | 31 | Codeql.Enabled:false |
| 32 | +VC_PATH:'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC' |
32 | 33 | GITHUB_PAT:$(GITHUBPUBLICTOKEN) |
33 | 34 |
|
34 | 35 | jobs: |
@@ -138,20 +139,13 @@ jobs: |
138 | 139 | script:git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/uvatlastest.git Tests |
139 | 140 | workingDirectory:$(Build.SourcesDirectory) |
140 | 141 | failOnStderr:true |
141 | | - -task:ChocolateyCommand@0 |
142 | | -displayName:Install Ninja |
143 | | -inputs: |
144 | | -command:'install' |
145 | | -installPackageId:'ninja' |
146 | 142 | -task:CmdLine@2 |
147 | | -displayName:'Setup environment for CMake to use VS' |
| 143 | +displayName:Setup environment for CMake to use VS |
148 | 144 | inputs: |
149 | 145 | script:| |
150 | | - @echo off |
151 | | - pushd "C:\Program Files (x86)\Microsoft Visual Studio\Installer\" |
152 | | - for /f "delims=" %%x in ('.\vswhere.exe -latest -property InstallationPath') do set VSPATH=%%x |
153 | | - popd |
154 | | - call "%VSPATH%\VC\Auxiliary\Build\vcvarsall.bat" x64 |
| 146 | + call "$(VC_PATH)\Auxiliary\Build\vcvars64.bat" |
| 147 | + echo ##vso[task.setvariable variable=WindowsSdkVerBinPath;]%WindowsSdkVerBinPath% |
| 148 | + echo ##vso[task.prependpath]%VSINSTALLDIR%Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja |
155 | 149 | echo ##vso[task.prependpath]%VCINSTALLDIR%Tools\Llvm\x64\bin |
156 | 150 | echo ##vso[task.prependpath]%WindowsSdkBinPath%x64 |
157 | 151 | echo ##vso[task.prependpath]%WindowsSdkVerBinPath%x64 |
@@ -213,14 +207,10 @@ jobs: |
213 | 207 | inputs: |
214 | 208 | Contents:'out' |
215 | 209 | -task:CmdLine@2 |
216 | | -displayName:'Set LIB for ARM64' |
| 210 | +displayName:Switch compiler to ARM64 |
217 | 211 | inputs: |
218 | 212 | script:| |
219 | | - @echo off |
220 | | - pushd "C:\Program Files (x86)\Microsoft Visual Studio\Installer\" |
221 | | - for /f "delims=" %%x in ('.\vswhere.exe -latest -property InstallationPath') do set VSPATH=%%x |
222 | | - popd |
223 | | - call "%VSPATH%\VC\Auxiliary\Build\vcvarsall.bat" arm64 |
| 213 | + call "$(VC_PATH)\Auxiliary\Build\vcvarsamd64_arm64.bat" |
224 | 214 | echo ##vso[task.setvariable variable=LIB;]%LIB% |
225 | 215 |
|
226 | 216 | -task:CMake@1 |
|