|
4 | 4 | # https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
|
5 | 5 |
|
6 | 6 | jobs:
|
7 |
| - - job: Windows |
| 7 | + - job: Windows_VS2017 |
8 | 8 |
|
9 | 9 | pool:
|
10 | 10 | vmImage: 'VS2017-Win2016'
|
|
62 | 62 | testResultsFiles: built\Out\windows_$(buildPlatform)\$(buildConfiguration)\GLTFSDK.Test\GLTFSDK.Test.log
|
63 | 63 | condition: and(succeeded(), in(variables['buildPlatform'], 'Win32', 'x64'))
|
64 | 64 |
|
65 |
| - - job: WindowsVcPkg |
| 65 | + - job: Windows_VS2019 |
| 66 | + |
| 67 | + pool: |
| 68 | + vmImage: 'windows-2019' |
| 69 | + |
| 70 | + strategy: |
| 71 | + matrix: |
| 72 | + Win32-Release: |
| 73 | + buildPlatform: Win32 |
| 74 | + buildConfiguration: Release |
| 75 | + Win32-Debug: |
| 76 | + buildPlatform: Win32 |
| 77 | + buildConfiguration: Debug |
| 78 | + x64-Release: |
| 79 | + buildPlatform: x64 |
| 80 | + buildConfiguration: Release |
| 81 | + x64-Debug: |
| 82 | + buildPlatform: x64 |
| 83 | + buildConfiguration: Debug |
| 84 | + ARM-Release: |
| 85 | + buildPlatform: ARM |
| 86 | + buildConfiguration: Release |
| 87 | + ARM-Debug: |
| 88 | + buildPlatform: ARM |
| 89 | + buildConfiguration: Debug |
| 90 | + ARM64-Release: |
| 91 | + buildPlatform: ARM64 |
| 92 | + buildConfiguration: Release |
| 93 | + ARM64-Debug: |
| 94 | + buildPlatform: ARM64 |
| 95 | + buildConfiguration: Debug |
| 96 | + |
| 97 | + workspace: |
| 98 | + clean: all |
| 99 | + |
| 100 | + steps: |
| 101 | + |
| 102 | + - task: CMake@1 |
| 103 | + inputs: |
| 104 | + workingDirectory: 'built\Int\cmake_$(buildPlatform)' |
| 105 | + cmakeArgs: '..\..\.. -G "Visual Studio 16 2019" -A "$(buildPlatform)"' |
| 106 | + |
| 107 | + - task: CMake@1 |
| 108 | + inputs: |
| 109 | + workingDirectory: 'built\Int\cmake_$(buildPlatform)' |
| 110 | + cmakeArgs: '--build . --target install --config $(buildConfiguration) -- /m' |
| 111 | + |
| 112 | + - script: .\GLTFSDK.Test.exe --gtest_output=xml:GLTFSDK.Test.log |
| 113 | + workingDirectory: built\Out\windows_$(buildPlatform)\$(buildConfiguration)\GLTFSDK.Test |
| 114 | + displayName: Running Unit Tests |
| 115 | + condition: and(succeeded(), in(variables['buildPlatform'], 'Win32', 'x64')) |
| 116 | + |
| 117 | + - task: PublishTestResults@2 |
| 118 | + inputs: |
| 119 | + testResultsFormat: 'JUnit' |
| 120 | + testResultsFiles: built\Out\windows_$(buildPlatform)\$(buildConfiguration)\GLTFSDK.Test\GLTFSDK.Test.log |
| 121 | + condition: and(succeeded(), in(variables['buildPlatform'], 'Win32', 'x64')) |
| 122 | + |
| 123 | + - job: WindowsVcPkg_VS2017 |
66 | 124 |
|
67 | 125 | pool:
|
68 | 126 | vmImage: 'VS2017-Win2016'
|
@@ -142,6 +200,86 @@ jobs:
|
142 | 200 | testResultsFiles: built\Out\windows_$(buildPlatform)\$(buildConfiguration)\GLTFSDK.Test\GLTFSDK.Test.log
|
143 | 201 | condition: and(succeeded(), in(variables['buildPlatform'], 'Win32', 'x64'))
|
144 | 202 |
|
| 203 | + - job: WindowsVcPkg_VS2019 |
| 204 | + |
| 205 | + pool: |
| 206 | + vmImage: 'windows-2019' |
| 207 | + |
| 208 | + strategy: |
| 209 | + matrix: |
| 210 | + Win32-Release: |
| 211 | + buildPlatform: Win32 |
| 212 | + buildConfiguration: Release |
| 213 | + vcpkgTriplet: x86-windows |
| 214 | + Win32-Debug: |
| 215 | + buildPlatform: Win32 |
| 216 | + buildConfiguration: Debug |
| 217 | + vcpkgTriplet: x86-windows |
| 218 | + x64-Release: |
| 219 | + buildPlatform: x64 |
| 220 | + buildConfiguration: Release |
| 221 | + vcpkgTriplet: x64-windows |
| 222 | + x64-Debug: |
| 223 | + buildPlatform: x64 |
| 224 | + buildConfiguration: Debug |
| 225 | + vcpkgTriplet: x64-windows |
| 226 | + ARM-Release: |
| 227 | + buildPlatform: ARM |
| 228 | + buildConfiguration: Release |
| 229 | + vcpkgTriplet: arm-windows |
| 230 | + ARM-Debug: |
| 231 | + buildPlatform: ARM |
| 232 | + buildConfiguration: Debug |
| 233 | + vcpkgTriplet: arm-windows |
| 234 | + ARM64-Release: |
| 235 | + buildPlatform: ARM64 |
| 236 | + buildConfiguration: Release |
| 237 | + vcpkgTriplet: arm64-windows |
| 238 | + ARM64-Debug: |
| 239 | + buildPlatform: ARM64 |
| 240 | + buildConfiguration: Debug |
| 241 | + vcpkgTriplet: arm64-windows |
| 242 | + |
| 243 | + workspace: |
| 244 | + clean: all |
| 245 | + |
| 246 | + variables: |
| 247 | + vcpkgRoot: "C:/vcpkg/scripts/buildsystems/vcpkg.cmake" |
| 248 | + |
| 249 | + steps: |
| 250 | + - powershell: vcpkg install --triplet "$(vcpkgTriplet)" rapidjson gtest |
| 251 | + displayName: Install packages with VcPkg |
| 252 | + |
| 253 | + - task: CMake@1 |
| 254 | + inputs: |
| 255 | + workingDirectory: 'built\Int\cmake_$(buildPlatform)' |
| 256 | + cmakeArgs: '..\..\.. -G "Visual Studio 16 2019" -A "$(buildPlatform)" -DCMAKE_TOOLCHAIN_FILE="$(vcpkgRoot)" -DVCPKG_TARGET_TRIPLET="$(vcpkgTriplet)"' |
| 257 | + |
| 258 | + - task: CMake@1 |
| 259 | + inputs: |
| 260 | + workingDirectory: 'built\Int\cmake_$(buildPlatform)' |
| 261 | + cmakeArgs: '--build . --target install --config $(buildConfiguration) -- /m' |
| 262 | + |
| 263 | + # copy googletest related dll files |
| 264 | + - task: CopyFiles@2 |
| 265 | + inputs: |
| 266 | + sourceFolder: 'built\Int\cmake_$(buildPlatform)\GLTFSDK.Test\$(buildConfiguration)' |
| 267 | + contents: 'gtest*.dll' |
| 268 | + targetFolder: 'built\Out\windows_$(buildPlatform)\$(buildConfiguration)\GLTFSDK.Test' |
| 269 | + overWrite: true |
| 270 | + condition: in(variables['buildPlatform'], 'Win32', 'x64') |
| 271 | + |
| 272 | + - script: .\GLTFSDK.Test.exe --gtest_output=xml:GLTFSDK.Test.log |
| 273 | + workingDirectory: built\Out\windows_$(buildPlatform)\$(buildConfiguration)\GLTFSDK.Test |
| 274 | + displayName: Running Unit Tests |
| 275 | + condition: and(succeeded(), in(variables['buildPlatform'], 'Win32', 'x64')) |
| 276 | + |
| 277 | + - task: PublishTestResults@2 |
| 278 | + inputs: |
| 279 | + testResultsFormat: 'JUnit' |
| 280 | + testResultsFiles: built\Out\windows_$(buildPlatform)\$(buildConfiguration)\GLTFSDK.Test\GLTFSDK.Test.log |
| 281 | + condition: and(succeeded(), in(variables['buildPlatform'], 'Win32', 'x64')) |
| 282 | + |
145 | 283 | - job: MacOS
|
146 | 284 |
|
147 | 285 | pool:
|
|
0 commit comments