2022-12-08 02:09:41 +00:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
|
|
|
# Licensed under the MIT License.
|
|
|
|
#
|
|
|
|
# http://go.microsoft.com/fwlink/?LinkID=512686
|
|
|
|
|
|
|
|
# Builds the library and test suite.
|
|
|
|
|
|
|
|
schedules:
|
|
|
|
- cron: "45 6 * * *"
|
|
|
|
displayName: 'Nightly build'
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- main
|
|
|
|
|
2024-07-30 03:11:53 +00:00
|
|
|
# GitHub Actions handles test suite for CI/PR
|
2023-02-10 02:51:55 +00:00
|
|
|
trigger: none
|
2024-04-05 21:38:25 +00:00
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- build/UVAtlas-GitHub-Test-Dev17.yml
|
2023-02-10 02:51:55 +00:00
|
|
|
|
2022-12-08 02:09:41 +00:00
|
|
|
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: windows-2022
|
|
|
|
|
|
|
|
variables:
|
2024-05-14 19:59:10 +00:00
|
|
|
Codeql.Enabled: false
|
2024-05-17 23:56:50 +00:00
|
|
|
VC_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC'
|
2022-12-08 02:09:41 +00:00
|
|
|
GITHUB_PAT: $(GITHUBPUBLICTOKEN)
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: DESKTOP_BUILD
|
|
|
|
displayName: 'Win32 Desktop'
|
|
|
|
timeoutInMinutes: 60
|
|
|
|
cancelTimeoutInMinutes: 1
|
2023-12-29 07:31:17 +00:00
|
|
|
workspace:
|
|
|
|
clean: all
|
2022-12-08 02:09:41 +00:00
|
|
|
steps:
|
2023-12-29 07:31:17 +00:00
|
|
|
- checkout: self
|
|
|
|
clean: true
|
|
|
|
fetchTags: false
|
|
|
|
path: 's/UVAtlas'
|
2022-12-08 02:09:41 +00:00
|
|
|
- task: CmdLine@2
|
|
|
|
displayName: Fetch Libraries
|
|
|
|
inputs:
|
|
|
|
script: |
|
2023-12-29 07:31:17 +00:00
|
|
|
git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/DirectXMesh.git
|
|
|
|
git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/DirectXTex.git
|
2022-12-08 02:09:41 +00:00
|
|
|
|
2023-12-29 07:31:17 +00:00
|
|
|
workingDirectory: $(Pipeline.Workspace)/s
|
2022-12-08 02:09:41 +00:00
|
|
|
failOnStderr: true
|
|
|
|
- task: CmdLine@2
|
|
|
|
displayName: Fetch Tests
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/uvatlastest.git Tests
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
failOnStderr: true
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution xtuvatlas_Desktop_2022.sln 32dbg
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
solution: Tests/xtuvatlas_Desktop_2022.sln
|
2022-12-08 02:09:41 +00:00
|
|
|
vsVersion: 17.0
|
|
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
|
|
platform: x86
|
|
|
|
configuration: Debug
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solutionxtuvatlas_Desktop_2022.sln 32rel
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
solution: Tests/xtuvatlas_Desktop_2022.sln
|
2022-12-08 02:09:41 +00:00
|
|
|
vsVersion: 17.0
|
|
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
|
|
platform: x86
|
|
|
|
configuration: Release
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution xtuvatlas_Desktop_2022.sln 64dbg
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
solution: Tests/xtuvatlas_Desktop_2022.sln
|
2022-12-08 02:09:41 +00:00
|
|
|
vsVersion: 17.0
|
|
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
|
|
platform: x64
|
|
|
|
configuration: Debug
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution xtuvatlas_Desktop_2022.sln 64rel
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
solution: Tests/xtuvatlas_Desktop_2022.sln
|
2022-12-08 02:09:41 +00:00
|
|
|
vsVersion: 17.0
|
|
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
|
|
platform: x64
|
|
|
|
configuration: Release
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution xtuvatlas_Desktop_2022.sln arm64dbg
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
solution: Tests/xtuvatlas_Desktop_2022.sln
|
2022-12-08 02:09:41 +00:00
|
|
|
vsVersion: 17.0
|
|
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
|
|
platform: ARM64
|
|
|
|
configuration: Debug
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution xtuvatlas_Desktop_2022.sln arm64rel
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
solution: Tests/xtuvatlas_Desktop_2022.sln
|
2022-12-08 02:09:41 +00:00
|
|
|
vsVersion: 17.0
|
|
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
|
|
platform: ARM64
|
|
|
|
configuration: Release
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
|
|
|
|
- job: CMAKE_BUILD
|
|
|
|
displayName: 'CMake BUILD_TESTING=ON'
|
|
|
|
timeoutInMinutes: 120
|
2023-12-29 07:31:17 +00:00
|
|
|
workspace:
|
|
|
|
clean: all
|
2022-12-08 02:09:41 +00:00
|
|
|
steps:
|
2023-12-29 07:31:17 +00:00
|
|
|
- checkout: self
|
|
|
|
clean: true
|
|
|
|
fetchTags: false
|
|
|
|
path: 's/UVAtlas'
|
2022-12-08 02:09:41 +00:00
|
|
|
- task: CmdLine@2
|
|
|
|
displayName: Fetch Libraries
|
|
|
|
inputs:
|
|
|
|
script: |
|
2023-12-29 07:31:17 +00:00
|
|
|
git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/DirectXMesh.git
|
|
|
|
git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/DirectXTex.git
|
2022-12-08 02:09:41 +00:00
|
|
|
|
2023-12-29 07:31:17 +00:00
|
|
|
workingDirectory: $(Pipeline.Workspace)/s
|
2022-12-08 02:09:41 +00:00
|
|
|
failOnStderr: true
|
|
|
|
- task: CmdLine@2
|
|
|
|
displayName: Fetch Tests
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/uvatlastest.git Tests
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
failOnStderr: true
|
|
|
|
- task: CmdLine@2
|
2024-05-17 23:56:50 +00:00
|
|
|
displayName: Setup environment for CMake to use VS
|
2022-12-08 02:09:41 +00:00
|
|
|
inputs:
|
|
|
|
script: |
|
2024-05-17 23:56:50 +00:00
|
|
|
call "$(VC_PATH)\Auxiliary\Build\vcvars64.bat"
|
|
|
|
echo ##vso[task.setvariable variable=WindowsSdkVerBinPath;]%WindowsSdkVerBinPath%
|
|
|
|
echo ##vso[task.prependpath]%VSINSTALLDIR%Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja
|
2022-12-08 02:09:41 +00:00
|
|
|
echo ##vso[task.prependpath]%VCINSTALLDIR%Tools\Llvm\x64\bin
|
|
|
|
echo ##vso[task.prependpath]%WindowsSdkBinPath%x64
|
|
|
|
echo ##vso[task.prependpath]%WindowsSdkVerBinPath%x64
|
|
|
|
echo ##vso[task.prependpath]%VCToolsInstallDir%bin\Hostx64\x64
|
|
|
|
echo ##vso[task.setvariable variable=EXTERNAL_INCLUDE;]%EXTERNAL_INCLUDE%
|
|
|
|
echo ##vso[task.setvariable variable=INCLUDE;]%INCLUDE%
|
|
|
|
echo ##vso[task.setvariable variable=LIB;]%LIB%
|
|
|
|
|
|
|
|
- task: CMake@1
|
|
|
|
displayName: CMake (MSVC; x64-Debug) Config
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
cwd: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
cmakeArgs: --preset=x64-Debug
|
|
|
|
- task: CMake@1
|
|
|
|
displayName: CMake (MSVC; x64-Debug) Build
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
cwd: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
cmakeArgs: --build out/build/x64-Debug -v
|
2023-11-26 20:59:08 +00:00
|
|
|
- task: DeleteFiles@1
|
|
|
|
inputs:
|
|
|
|
Contents: 'out'
|
2022-12-08 02:09:41 +00:00
|
|
|
- task: CMake@1
|
|
|
|
displayName: CMake (MSVC; x64-Release) Config
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
cwd: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
cmakeArgs: --preset=x64-Release
|
|
|
|
- task: CMake@1
|
|
|
|
displayName: CMake (MSVC; x64-Release) Build
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
cwd: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
cmakeArgs: --build out/build/x64-Release -v
|
2023-11-26 20:59:08 +00:00
|
|
|
- task: DeleteFiles@1
|
|
|
|
inputs:
|
|
|
|
Contents: 'out'
|
2022-12-08 02:09:41 +00:00
|
|
|
- task: CMake@1
|
|
|
|
displayName: CMake (clang/LLVM; x64-Debug) Config
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
cwd: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
cmakeArgs: --preset=x64-Debug-Clang
|
|
|
|
- task: CMake@1
|
|
|
|
displayName: CMake (clang/LLVM; x64-Debug) Build
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
cwd: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
cmakeArgs: --build out/build/x64-Debug-Clang -v
|
2023-11-26 20:59:08 +00:00
|
|
|
- task: DeleteFiles@1
|
|
|
|
inputs:
|
|
|
|
Contents: 'out'
|
2022-12-08 02:09:41 +00:00
|
|
|
- task: CMake@1
|
|
|
|
displayName: CMake (clang/LLVM; x64-Release) Config
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
cwd: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
cmakeArgs: --preset=x64-Release-Clang
|
|
|
|
- task: CMake@1
|
|
|
|
displayName: CMake (clang/LLVM; x64-Release) Build
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
cwd: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
cmakeArgs: --build out/build/x64-Release-Clang -v
|
2023-11-26 20:59:08 +00:00
|
|
|
- task: DeleteFiles@1
|
|
|
|
inputs:
|
|
|
|
Contents: 'out'
|
2022-12-08 02:09:41 +00:00
|
|
|
- task: CmdLine@2
|
2024-05-17 23:56:50 +00:00
|
|
|
displayName: Switch compiler to ARM64
|
2022-12-08 02:09:41 +00:00
|
|
|
inputs:
|
|
|
|
script: |
|
2024-05-17 23:56:50 +00:00
|
|
|
call "$(VC_PATH)\Auxiliary\Build\vcvarsamd64_arm64.bat"
|
2022-12-08 02:09:41 +00:00
|
|
|
echo ##vso[task.setvariable variable=LIB;]%LIB%
|
|
|
|
|
|
|
|
- task: CMake@1
|
|
|
|
displayName: CMake (clang/LLVM; arm64-Debug) Config
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
cwd: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
cmakeArgs: --preset=arm64-Debug-Clang
|
|
|
|
- task: CMake@1
|
|
|
|
displayName: CMake (clang/LLVM; arm64-Debug) Build
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
cwd: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
cmakeArgs: --build out/build/arm64-Debug-Clang -v
|
2023-11-26 20:59:08 +00:00
|
|
|
- task: DeleteFiles@1
|
|
|
|
inputs:
|
|
|
|
Contents: 'out'
|
2022-12-08 02:09:41 +00:00
|
|
|
- task: CMake@1
|
|
|
|
displayName: CMake (clang/LLVM; arm64-Release) Config
|
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
cwd: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
cmakeArgs: --preset=arm64-Release-Clang
|
|
|
|
- task: CMake@1
|
2022-12-08 09:14:26 +00:00
|
|
|
# This is disabled to avoid an ICE with clang v15.0.1
|
2022-12-08 02:09:41 +00:00
|
|
|
displayName: CMake (clang/LLVM; arm64-Release) Build
|
2022-12-08 08:33:19 +00:00
|
|
|
enabled: false
|
2022-12-08 02:09:41 +00:00
|
|
|
inputs:
|
2023-12-29 07:31:17 +00:00
|
|
|
cwd: $(Build.SourcesDirectory)
|
2022-12-08 02:09:41 +00:00
|
|
|
cmakeArgs: --build out/build/arm64-Release-Clang -v
|