DirectXTK/build/DirectXTK-GitHub-CMake.yml

221 строка
7.1 KiB
YAML
Исходник Обычный вид История

2022-12-04 06:13:08 +03:00
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# http://go.microsoft.com/fwlink/?LinkId=248929
# Builds the library using CMake.
2022-12-04 04:49:52 +03:00
schedules:
- cron: "0 4 * * *"
displayName: 'Nightly build'
branches:
include:
- main
trigger:
branches:
include:
- main
paths:
exclude:
- *.md
- LICENSE
- .nuget/*
- build/*
- !build/CompilerAndLinker.cmake
- !build/DirectXTK-GitHub-CMake.yml
- !build/DirectXTK.pc.in
- !build/JoinPaths.cmake
pr:
branches:
include:
- main
paths:
exclude:
- *.md
- LICENSE
- .nuget/*
- build/*
- !build/CompilerAndLinker.cmake
- !build/DirectXTK-GitHub-CMake.yml
- !build/DirectXTK.pc.in
- !build/JoinPaths.cmake
drafts: false
2022-12-04 04:49:52 +03: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'
2022-12-04 05:34:41 +03:00
REDIST_DIR: $(xaudio2redist_DIR)
2022-12-04 04:49:52 +03:00
WIN10_SDK: '10.0.19041.0'
WIN11_SDK: '10.0.22000.0'
pool:
vmImage: windows-2019
jobs:
- job: CMAKE_BUILD
displayName: CMake using VS Generator
steps:
- checkout: self
clean: true
fetchTags: false
- task: CMake@1
displayName: 'CMake (MSVC): Config x64'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 00:32:03 +03:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_XAUDIO_WIN8=ON -DBUILD_TOOLS=ON'
2022-12-04 04:49:52 +03:00
- task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 04:49:52 +03:00
cmakeArgs: --build out -v --config Debug
- task: CMake@1
displayName: 'CMake (MSVC): Build x64 Release'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 04:49:52 +03:00
cmakeArgs: --build out -v --config RelWithDebInfo
- task: CMake@1
displayName: 'CMake (MSVC): Config x86'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 00:32:03 +03:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A Win32 -B out2 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_XAUDIO_WIN8=ON -DBUILD_TOOLS=ON'
2022-12-04 04:49:52 +03:00
- task: CMake@1
displayName: 'CMake (MSVC): Build x86 Debug'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 04:49:52 +03:00
cmakeArgs: --build out2 -v --config Debug
- task: CMake@1
displayName: 'CMake (MSVC): Build x86 Release'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 04:49:52 +03:00
cmakeArgs: --build out2 -v --config RelWithDebInfo
- task: CMake@1
displayName: 'CMake (MSVC): Config ARM64'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 00:32:03 +03:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -B out3 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_XAUDIO_WIN8=ON -DBUILD_TOOLS=ON'
2022-12-04 04:49:52 +03:00
- task: CMake@1
displayName: 'CMake (MSVC): Build ARM64 Debug'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 04:49:52 +03:00
cmakeArgs: --build out3 -v --config Debug
- task: CMake@1
displayName: 'CMake (MSVC): Build ARM64 Release'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 04:49:52 +03:00
cmakeArgs: --build out3 -v --config RelWithDebInfo
- task: CMake@1
displayName: 'CMake (UWP): Config x64'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 00:32:03 +03:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out4 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0'
2022-12-04 04:49:52 +03:00
- task: CMake@1
displayName: 'CMake (UWP): Build x64'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 04:49:52 +03:00
cmakeArgs: --build out4 -v
- task: CMake@1
displayName: 'CMake (ClangCl): Config x64'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 00:32:03 +03:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -T clangcl -B out6 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_XAUDIO_WIN8=ON -DBUILD_TOOLS=ON'
2022-12-04 04:49:52 +03:00
- task: CMake@1
displayName: 'CMake (ClangCl): Build x64 Debug'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 04:49:52 +03:00
cmakeArgs: --build out6 -v --config Debug
- task: CMake@1
displayName: 'CMake (ClangCl): Build x64 Release'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 04:49:52 +03:00
cmakeArgs: --build out6 -v --config RelWithDebInfo
- task: CMake@1
displayName: 'CMake (ClangCl): Config ARM64'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 00:32:03 +03:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -T clangcl -B out7 -DCMAKE_SYSTEM_VERSION=$(WIN11_SDK) -DBUILD_XAUDIO_WIN8=ON -DBUILD_TOOLS=ON'
2022-12-04 04:49:52 +03:00
- task: CMake@1
displayName: 'CMake (ClangCl): Build ARM64'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 04:49:52 +03:00
cmakeArgs: --build out7 -v --config Debug
- task: CMake@1
displayName: 'CMake (Win10): Config'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-05 00:32:03 +03:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out8 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_XAUDIO_WIN10=ON -DBUILD_TOOLS=OFF'
2022-12-04 04:49:52 +03:00
- task: CMake@1
displayName: 'CMake (Win10): Build'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 04:49:52 +03:00
cmakeArgs: --build out8 -v
- task: NuGetToolInstaller@1
2022-12-06 23:25:22 +03:00
displayName: 'Use NuGet'
2022-12-04 04:49:52 +03:00
enabled: False
- task: NuGetCommand@2
displayName: Install Microsoft.XAudio2.Redist
enabled: False
inputs:
command: custom
2022-12-04 05:34:41 +03:00
arguments: install Microsoft.XAudio2.Redist -ExcludeVersion -OutputDirectory $(REDIST_DIR)
2022-12-04 04:49:52 +03:00
- task: CMake@1
displayName: 'CMake (ClangCl Win7): Config'
enabled: False
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 05:34:41 +03:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -T clangcl -B out9 -DBUILD_XAUDIO_WIN7=ON -DBUILD_XAUDIO_WIN8=OFF -DBUILD_TOOLS=OFF -Dxaudio2redist_DIR=$(REDIST_DIR)\Microsoft.XAudio2.Redist'
2022-12-04 04:49:52 +03:00
- task: CMake@1
displayName: 'CMake (Build Win7): Build'
enabled: False
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-04 04:49:52 +03:00
cmakeArgs: --build out9 -v
2022-12-06 23:25:22 +03:00
- task: CMake@1
displayName: 'CMake (MSVC Spectre): Config x64'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-06 23:25:22 +03:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out10 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_XAUDIO_WIN8=ON -DBUILD_TOOLS=ON'
- task: CMake@1
displayName: 'CMake (MSVC Spectre): Build x64 Debug'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-06 23:25:22 +03:00
cmakeArgs: --build out10 -v --config Debug
- task: CMake@1
displayName: 'CMake (MSVC Spectre): Build x64 Release'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-06 23:25:22 +03:00
cmakeArgs: --build out10 -v --config RelWithDebInfo
- task: CMake@1
displayName: 'CMake (MSVC Spectre): Config ARM64'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-06 23:25:22 +03:00
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -B out11 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_XAUDIO_WIN8=ON -DBUILD_TOOLS=ON'
- task: CMake@1
displayName: 'CMake (MSVC Spectre): Build ARM64 Debug'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-06 23:25:22 +03:00
cmakeArgs: --build out11 -v --config Debug
- task: CMake@1
displayName: 'CMake (MSVC Spectre): Build ARM64 Release'
inputs:
2022-12-08 12:11:25 +03:00
cwd: '$(Build.SourcesDirectory)'
2022-12-06 23:25:22 +03:00
cmakeArgs: --build out11 -v --config RelWithDebInfo
- task: CMake@1
displayName: 'CMake (NO_WCHAR_T): Config'
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out12 -DNO_WCHAR_T=ON -DCMAKE_SYSTEM_VERSION=$(WIN11_SDK)'
- task: CMake@1
displayName: 'CMake (NO_WCHAR_T): Build'
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --build out12 -v --config Debug