1
0
mirror of https://github.com/microsoft/DirectXMath synced 2024-11-14 00:20:05 +00:00
DirectXMath/build/DirectXMath-GitHub-CMake.yml

118 lines
2.9 KiB
YAML
Raw Normal View History

2022-12-05 08:00:28 +00:00
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# http://go.microsoft.com/fwlink/?LinkID=615560
# Builds the library and test suite using CMake.
schedules:
- cron: "0 0 * * *"
displayName: 'Nightly build'
branches:
include:
- main
trigger:
branches:
include:
- main
paths:
include:
- CMakeLists.txt
pr:
branches:
include:
- main
paths:
include:
- CMakeLists.txt
2022-12-05 08:00:28 +00:00
resources:
repositories:
- repository: self
type: git
ref: refs/heads/main
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
variables:
VS_GENERATOR: 'Visual Studio 16 2019'
WIN10_SDK: '10.0.19041.0'
2022-12-05 08:09:48 +00:00
GITHUB_PAT: $(GITHUBPUBLICTOKEN)
2022-12-05 08:00:28 +00:00
pool:
vmImage: windows-2019
jobs:
- job: CMAKE_BUILD
displayName: CMake using VS Generator
cancelTimeoutInMinutes: 1
steps:
- checkout: self
clean: true
fetchTags: false
- task: CmdLine@2
displayName: Fetch Tests
inputs:
2023-11-15 23:38:51 +00:00
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
2022-12-05 08:00:28 +00:00
- task: CMake@1
displayName: CMake (MSVC x64)
inputs:
2022-12-08 09:12:57 +00:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 08:00:28 +00:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
- task: CMake@1
displayName: CMake (Build x64)
inputs:
2022-12-08 09:12:57 +00:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 08:00:28 +00:00
cmakeArgs: --build out -v
- task: CMake@1
displayName: CMake Test (MSVC x64)
inputs:
cwd: Tests
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
- task: CMake@1
displayName: CMake Test (Build x64)
inputs:
cwd: Tests
cmakeArgs: --build out -v
- task: CMake@1
displayName: CMake (MSVC ARM64)
inputs:
2022-12-08 09:12:57 +00:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 08:00:28 +00:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -B out2 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
- task: CMake@1
displayName: CMake (Build ARM64)
inputs:
2022-12-08 09:12:57 +00:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 08:00:28 +00:00
cmakeArgs: --build out2 -v
- task: CMake@1
displayName: CMake Test (MSVC ARM64)
inputs:
cwd: Tests
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -B out2 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
- task: CMake@1
displayName: CMake Test (Build ARM64)
inputs:
cwd: Tests
cmakeArgs: --build out2 -v
- task: CMake@1
displayName: CMake (ClangCl)
inputs:
2022-12-08 09:12:57 +00:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 08:00:28 +00:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -T clangcl -B out3 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
- task: CMake@1
displayName: CMake (Build)
inputs:
2022-12-08 09:12:57 +00:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 08:00:28 +00:00
cmakeArgs: --build out3 -v
- task: CMake@1
displayName: CMake Test (ClangCL)
inputs:
cwd: Tests
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -T clangcl -B out3 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
- task: CMake@1
displayName: CMake Test (Build)
inputs:
cwd: Tests
cmakeArgs: --build out3 -v