Skip to content

Commit be8faf6

Browse files
committed
Add YAML Azure Pipelines
1 parent 8a4c893 commit be8faf6

9 files changed

+1350
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ install(TARGETS ${PROJECT_NAME}
5151
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
5252
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
5353

54-
configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/.nuget/${PROJECT_NAME}-config.cmake.in
54+
configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/build/${PROJECT_NAME}-config.cmake.in
5555
${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME}-config.cmake
5656
INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PACKAGE_NAME})
5757

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
#
4+
# http://go.microsoft.com/fwlink/?LinkID=615560
5+
6+
# Builds the library and test suite using CMake.
7+
8+
schedules:
9+
- cron: "0 0 * * *"
10+
displayName: 'Nightly build'
11+
branches:
12+
include:
13+
- main
14+
15+
resources:
16+
repositories:
17+
- repository: self
18+
type: git
19+
ref: refs/heads/main
20+
trigger: none
21+
22+
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
23+
24+
variables:
25+
VS_GENERATOR: 'Visual Studio 17 2022'
26+
WIN10_SDK: '10.0.19041.0'
27+
WIN11_SDK: '10.0.22000.0'
28+
29+
pool:
30+
vmImage: windows-2022
31+
32+
variables:
33+
GITHUB_PAT: $(GITHUBPUBLICTOKEN)
34+
35+
jobs:
36+
- job: CMAKE_BUILD
37+
displayName: CMake using VS Generator BUILD_TESTING=ON
38+
cancelTimeoutInMinutes: 1
39+
steps:
40+
- checkout: self
41+
clean: true
42+
fetchTags: false
43+
- task: CmdLine@2
44+
displayName: Fetch Tests
45+
inputs:
46+
script: git clone --quiet https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
47+
- task: CMake@1
48+
displayName: 'CMake (MSVC): Config x64'
49+
inputs:
50+
cwd: ''
51+
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
52+
- task: CMake@1
53+
displayName: 'CMake (MSVC): Build x64 Debug'
54+
inputs:
55+
cwd: ''
56+
cmakeArgs: --build out -v --config Debug
57+
- task: CMake@1
58+
displayName: 'CMake (MSVC): Build x64 Release'
59+
inputs:
60+
cwd: ''
61+
cmakeArgs: --build out -v --config RelWithDebInfo
62+
- task: CMake@1
63+
displayName: 'CMake (MSVC): Config x86'
64+
inputs:
65+
cwd: ''
66+
cmakeArgs: '-G "$(VS_GENERATOR)" -A Win32 -B out2 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
67+
- task: CMake@1
68+
displayName: 'CMake (MSVC): Build x86 Debug'
69+
inputs:
70+
cwd: ''
71+
cmakeArgs: --build out2 -v --config Debug
72+
- task: CMake@1
73+
displayName: 'CMake (MSVC): Build x86 Release'
74+
inputs:
75+
cwd: ''
76+
cmakeArgs: --build out2 -v --config RelWithDebInfo
77+
- task: CMake@1
78+
displayName: 'CMake (MSVC): Config ARM64'
79+
inputs:
80+
cwd: ''
81+
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -B out3 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
82+
- task: CMake@1
83+
displayName: 'CMake (MSVC): Build ARM64 Debug'
84+
inputs:
85+
cwd: ''
86+
cmakeArgs: --build out3 -v --config Debug
87+
- task: CMake@1
88+
displayName: 'CMake (MSVC): Build ARM64 Release'
89+
inputs:
90+
cwd: ''
91+
cmakeArgs: --build out3 -v --config RelWithDebInfo
92+
- task: CMake@1
93+
displayName: 'CMake (ClangCl): Config x64'
94+
inputs:
95+
cwd: ''
96+
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -T clangcl -B out4 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
97+
- task: CMake@1
98+
displayName: 'CMake (ClangCl): Build x64 Debug'
99+
inputs:
100+
cwd: ''
101+
cmakeArgs: --build out4 -v --config Debug
102+
- task: CMake@1
103+
displayName: 'CMake (ClangCl): Build x64 Release'
104+
inputs:
105+
cwd: ''
106+
cmakeArgs: --build out4 -v --config RelWithDebInfo
107+
- task: CMake@1
108+
displayName: 'CMake (ClangCl): Config ARM64'
109+
inputs:
110+
cwd: ''
111+
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -T clangcl -B out5 -DCMAKE_SYSTEM_VERSION=$(WIN11_SDK)'
112+
- task: CMake@1
113+
displayName: 'CMake (ClangCl): Build ARM64 Debug'
114+
inputs:
115+
cwd: ''
116+
cmakeArgs: --build out5 -v --config ARM64 Debug
117+
- task: CMake@1
118+
displayName: 'CMake (ClangCl): Build ARM64 Release'
119+
inputs:
120+
cwd: ''
121+
cmakeArgs: --build out5 -v --config RelWithDebInfo

build/DirectXMath-GitHub-CMake.yml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
#
4+
# http://go.microsoft.com/fwlink/?LinkID=615560
5+
6+
# Builds the library and test suite using CMake.
7+
8+
schedules:
9+
- cron: "0 0 * * *"
10+
displayName: 'Nightly build'
11+
branches:
12+
include:
13+
- main
14+
15+
resources:
16+
repositories:
17+
- repository: self
18+
type: git
19+
ref: refs/heads/main
20+
trigger: none
21+
22+
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
23+
24+
variables:
25+
VS_GENERATOR: 'Visual Studio 16 2019'
26+
WIN10_SDK: '10.0.19041.0'
27+
28+
pool:
29+
vmImage: windows-2019
30+
31+
variables:
32+
GITHUB_PAT: $(GITHUBPUBLICTOKEN)
33+
34+
jobs:
35+
- job: CMAKE_BUILD
36+
displayName: CMake using VS Generator
37+
cancelTimeoutInMinutes: 1
38+
steps:
39+
- checkout: self
40+
clean: true
41+
fetchTags: false
42+
- task: CmdLine@2
43+
displayName: Fetch Tests
44+
inputs:
45+
script: git clone --quiet https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
46+
- task: CMake@1
47+
displayName: CMake (MSVC x64)
48+
inputs:
49+
cwd: ''
50+
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
51+
- task: CMake@1
52+
displayName: CMake (Build x64)
53+
inputs:
54+
cwd: ''
55+
cmakeArgs: --build out -v
56+
- task: CMake@1
57+
displayName: CMake Test (MSVC x64)
58+
inputs:
59+
cwd: Tests
60+
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
61+
- task: CMake@1
62+
displayName: CMake Test (Build x64)
63+
inputs:
64+
cwd: Tests
65+
cmakeArgs: --build out -v
66+
- task: CMake@1
67+
displayName: CMake (MSVC ARM64)
68+
inputs:
69+
cwd: ''
70+
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -B out2 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
71+
- task: CMake@1
72+
displayName: CMake (Build ARM64)
73+
inputs:
74+
cwd: ''
75+
cmakeArgs: --build out2 -v
76+
- task: CMake@1
77+
displayName: CMake Test (MSVC ARM64)
78+
inputs:
79+
cwd: Tests
80+
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -B out2 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
81+
- task: CMake@1
82+
displayName: CMake Test (Build ARM64)
83+
inputs:
84+
cwd: Tests
85+
cmakeArgs: --build out2 -v
86+
- task: CMake@1
87+
displayName: CMake (ClangCl)
88+
inputs:
89+
cwd: ''
90+
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -T clangcl -B out3 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
91+
- task: CMake@1
92+
displayName: CMake (Build)
93+
inputs:
94+
cwd: ''
95+
cmakeArgs: --build out3 -v
96+
- task: CMake@1
97+
displayName: CMake Test (ClangCL)
98+
inputs:
99+
cwd: Tests
100+
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -T clangcl -B out3 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)'
101+
- task: CMake@1
102+
displayName: CMake Test (Build)
103+
inputs:
104+
cwd: Tests
105+
cmakeArgs: --build out3 -v

0 commit comments

Comments
 (0)