Skip to content

Commit 99896d9

Browse files
authored
Update ADO YAML to use shared variables (#223)
1 parent fc24691 commit 99896d9

File tree

5 files changed

+73
-29
lines changed

5 files changed

+73
-29
lines changed

.azuredevops/pipelines/DirectXMesh-GitHub-GDK-Dev17.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,19 @@ pool:
3939
vmImage: windows-2022
4040

4141
variables:
42-
Codeql.Enabled: false
43-
EXTRACTED_FOLDER: $(ExtractedFolder)
44-
GDK_EDITION: $(GDKEditionNumber)
45-
GDKEnableBWOI: true
46-
URL_FEED: $(ADOFeedURL)
47-
VC_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC'
48-
skipNugetSecurityAnalysis: true # We explicitly call this task so we don't need it to be auto-injected
42+
- group: dxmesh-shared-variables
43+
- name: Codeql.Enabled
44+
value: false
45+
- name: EXTRACTED_FOLDER
46+
value: '$(ExtractedFolder)'
47+
- name: GDKEnableBWOI
48+
value: true
49+
- name: URL_FEED
50+
value: $(ADOFeedURL)
51+
- name: VC_PATH
52+
value: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC'
53+
- name: skipNugetSecurityAnalysis
54+
value: true # We explicitly call this task so we don't need it to be auto-injected
4955

5056
jobs:
5157
- job: BUILD_GDK
@@ -105,6 +111,7 @@ jobs:
105111
solution: build/SetupBWOI.targets
106112
msbuildVersion: 17.0
107113
msbuildArchitecture: x64
114+
msbuildArguments: /p:GDKEditionNumber=$(GDK_EDITION)
108115
- task: VSBuild@1
109116
displayName: Build solution DirectXMesh_GDK_2022 pcdbg
110117
continueOnError: True
@@ -114,6 +121,7 @@ jobs:
114121
platform: Gaming.Desktop.x64
115122
configuration: Debug
116123
msbuildArchitecture: x64
124+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
117125
- task: VSBuild@1
118126
displayName: Build solution DirectXMesh_GDK_2022 pcrel
119127
continueOnError: True
@@ -123,6 +131,7 @@ jobs:
123131
platform: Gaming.Desktop.x64
124132
configuration: Release
125133
msbuildArchitecture: x64
134+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
126135
- task: VSBuild@1
127136
displayName: Build solution DirectXMesh_GDK_2022 xbdbg
128137
continueOnError: True
@@ -132,6 +141,7 @@ jobs:
132141
platform: Gaming.Xbox.XboxOne.x64
133142
configuration: Debug
134143
msbuildArchitecture: x64
144+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
135145
- task: VSBuild@1
136146
displayName: Build solution DirectXMesh_GDK_2022 xbrel
137147
continueOnError: True
@@ -141,6 +151,7 @@ jobs:
141151
platform: Gaming.Xbox.XboxOne.x64
142152
configuration: Release
143153
msbuildArchitecture: x64
154+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
144155
- task: VSBuild@1
145156
displayName: Build solution DirectXMesh_GDK_2022 scardbg
146157
continueOnError: True
@@ -150,6 +161,7 @@ jobs:
150161
platform: Gaming.Xbox.Scarlett.x64
151162
configuration: Debug
152163
msbuildArchitecture: x64
164+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
153165
- task: VSBuild@1
154166
displayName: Build solution DirectXMesh_GDK_2022 scarrel
155167
continueOnError: True
@@ -159,6 +171,7 @@ jobs:
159171
platform: Gaming.Xbox.Scarlett.x64
160172
configuration: Release
161173
msbuildArchitecture: x64
174+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
162175

163176
- job: BUILD_GDK_CMAKE_SCAR
164177
displayName: 'Microsoft Game Development Kit (GDK) using CMake (Scarlett)'

.azuredevops/pipelines/DirectXMesh-GitHub-GDK.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,17 @@ pool:
5959
vmImage: windows-2019
6060

6161
variables:
62-
Codeql.Enabled: false
63-
EXTRACTED_FOLDER: $(ExtractedFolder)
64-
GDK_EDITION: $(GDKEditionNumber)
65-
GDKEnableBWOI: true
66-
URL_FEED: $(ADOFeedURL)
67-
skipNugetSecurityAnalysis: true # We explicitly call this task so we don't need it to be auto-injected
62+
- group: dxmesh-shared-variables
63+
- name: Codeql.Enabled
64+
value: false
65+
- name: EXTRACTED_FOLDER
66+
value: '$(ExtractedFolder)'
67+
- name: GDKEnableBWOI
68+
value: true
69+
- name: URL_FEED
70+
value: $(ADOFeedURL)
71+
- name: skipNugetSecurityAnalysis
72+
value: true # We explicitly call this task so we don't need it to be auto-injected
6873

6974
jobs:
7075
- job: BUILD_GDK
@@ -124,6 +129,7 @@ jobs:
124129
solution: build/SetupBWOI.targets
125130
msbuildVersion: 16.0
126131
msbuildArchitecture: x64
132+
msbuildArguments: /p:GDKEditionNumber=$(GDK_EDITION)
127133
- task: VSBuild@1
128134
displayName: Build solution DirectXMesh_GDK_2019 pcdbg
129135
inputs:
@@ -132,6 +138,7 @@ jobs:
132138
platform: Gaming.Desktop.x64
133139
configuration: Debug
134140
msbuildArchitecture: x64
141+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
135142
- task: VSBuild@1
136143
displayName: Build solution DirectXMesh_GDK_2019 pcrel
137144
inputs:
@@ -140,6 +147,7 @@ jobs:
140147
platform: Gaming.Desktop.x64
141148
configuration: Release
142149
msbuildArchitecture: x64
150+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
143151
- task: VSBuild@1
144152
displayName: Build solution DirectXMesh_GDK_2019 xbdbg
145153
inputs:
@@ -148,6 +156,7 @@ jobs:
148156
platform: Gaming.Xbox.XboxOne.x64
149157
configuration: Debug
150158
msbuildArchitecture: x64
159+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
151160
- task: VSBuild@1
152161
displayName: Build solution DirectXMesh_GDK_2019 xbrel
153162
inputs:
@@ -156,6 +165,7 @@ jobs:
156165
platform: Gaming.Xbox.XboxOne.x64
157166
configuration: Release
158167
msbuildArchitecture: x64
168+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
159169
- task: VSBuild@1
160170
displayName: Build solution DirectXMesh_GDK_2019 scardbg
161171
inputs:
@@ -164,6 +174,7 @@ jobs:
164174
platform: Gaming.Xbox.Scarlett.x64
165175
configuration: Debug
166176
msbuildArchitecture: x64
177+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
167178
- task: VSBuild@1
168179
displayName: Build solution DirectXMesh_GDK_2019 scarrel
169180
inputs:
@@ -172,3 +183,4 @@ jobs:
172183
platform: Gaming.Xbox.Scarlett.x64
173184
configuration: Release
174185
msbuildArchitecture: x64
186+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)

.azuredevops/pipelines/DirectXMesh-GitHub-MinGW.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,19 @@ pool:
6767
vmImage: windows-2022
6868

6969
variables:
70-
Codeql.Enabled: false
71-
VCPKG_ROOT: $(Build.SourcesDirectory)/vcpkg
72-
VCPKG_CMAKE_DIR: $(Build.SourcesDirectory)/vcpkg/scripts/buildsystems/vcpkg.cmake
73-
VCPKG_MANIFEST_DIR: $(Build.SourcesDirectory)/build
74-
URL_MINGW32: https://github.com/brechtsanders/winlibs_mingw/releases/download/12.2.0-14.0.6-10.0.0-ucrt-r2/winlibs-i686-posix-dwarf-gcc-12.2.0-llvm-14.0.6-mingw-w64ucrt-10.0.0-r2.zip
75-
HASH_MINGW32: 'fcd1e11b896190da01c83d5b5fb0d37b7c61585e53446c2dab0009debc3915e757213882c35e35396329338de6f0222ba012e23a5af86932db45186a225d1272'
70+
- group: dxmesh-shared-variables
71+
- name: Codeql.Enabled
72+
value: false
73+
- name: VCPKG_ROOT
74+
value: '$(Build.SourcesDirectory)/vcpkg'
75+
- name: VCPKG_CMAKE_DIR
76+
value: '$(Build.SourcesDirectory)/vcpkg/scripts/buildsystems/vcpkg.cmake'
77+
- name: VCPKG_MANIFEST_DIR
78+
value: '$(Build.SourcesDirectory)/build'
79+
- name: URL_MINGW32
80+
value: https://github.com/brechtsanders/winlibs_mingw/releases/download/12.2.0-14.0.6-10.0.0-ucrt-r2/winlibs-i686-posix-dwarf-gcc-12.2.0-llvm-14.0.6-mingw-w64ucrt-10.0.0-r2.zip
81+
- name: HASH_MINGW32
82+
value: 'fcd1e11b896190da01c83d5b5fb0d37b7c61585e53446c2dab0009debc3915e757213882c35e35396329338de6f0222ba012e23a5af86932db45186a225d1272'
7683

7784
jobs:
7885
- job: MINGW32_BUILD

.azuredevops/pipelines/DirectXMesh-GitHub-SDK-prerelease.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,17 @@ resources:
2525
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
2626

2727
variables:
28-
Codeql.Enabled: false
29-
EXTRACTED_FOLDER: $(ExtractedFolder)
30-
WSDKEnableBWOI: true
31-
URL_FEED: $(ADOFeedURL)
32-
skipNugetSecurityAnalysis: true # We explicitly call this task so we don't need it to be auto-injected
28+
- group: dxmesh-shared-variables
29+
- name: Codeql.Enabled
30+
value: false
31+
- name: EXTRACTED_FOLDER
32+
value: '$(ExtractedFolder)'
33+
- name: WSDKEnableBWOI
34+
value: true
35+
- name: URL_FEED
36+
value: $(ADOFeedURL)
37+
- name: skipNugetSecurityAnalysis
38+
value: true # We explicitly call this task so we don't need it to be auto-injected
3339

3440
pool:
3541
vmImage: windows-2022

.azuredevops/pipelines/DirectXMesh-GitHub-SDK-release.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,17 @@ resources:
2525
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
2626

2727
variables:
28-
Codeql.Enabled: false
29-
EXTRACTED_FOLDER: $(ExtractedFolder)
30-
WSDKEnableBWOI: true
31-
URL_FEED: $(ADOFeedURL)
32-
skipNugetSecurityAnalysis: true # We explicitly call this task so we don't need it to be auto-injected
28+
- group: dxmesh-shared-variables
29+
- name: Codeql.Enabled
30+
value: false
31+
- name: EXTRACTED_FOLDER
32+
value: '$(ExtractedFolder)'
33+
- name: WSDKEnableBWOI
34+
value: true
35+
- name: URL_FEED
36+
value: $(ADOFeedURL)
37+
- name: skipNugetSecurityAnalysis
38+
value: true # We explicitly call this task so we don't need it to be auto-injected
3339

3440
pool:
3541
vmImage: windows-2022

0 commit comments

Comments
 (0)