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

127 lines
3.1 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 using VS Generator (GitHub Actions covers Ninja).
2022-12-05 08:00:28 +00:00
schedules:
- cron: "0 0 * * *"
displayName: 'Nightly build'
branches:
include:
- main
trigger:
branches:
include:
- main
paths:
exclude:
- '*.md'
- LICENSE
- '.github/*'
- '.nuget/*'
- build/*.ps1
pr:
branches:
include:
- main
paths:
exclude:
- '*.md'
- LICENSE
- '.github/*'
- '.nuget/*'
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:
2024-05-14 19:58:59 +00:00
Codeql.Enabled: false
2022-12-05 08:00:28 +00:00
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