2121 paths :
2222 include :
2323 - ' .azuredevops/pipelines/DirectXTK12-GitHub-GDK-Dev17.yml'
24- - ' .azuredevops/pipelines/DirectXTK12-build-gdk.yml'
24+ - ' .azuredevops/templates/DirectXTK12-build-gdk.yml'
25+ - ' .azuredevops/templates/DirectXTK12-build-gdkx.yml'
26+ - ' .azuredevops/templates/DirectXTK12-setup-gdk-auto.yml'
2527 - CMakeList.txt
2628 - build/*.in
2729 - build/*.cmake
@@ -63,7 +65,7 @@ variables:
6365
6466jobs :
6567 - job : BUILD_GDK
66- displayName : ' Microsoft Game Development Kit (GDK Gaming.Desktop .x64)'
68+ displayName : ' Microsoft Game Development Kit (Gaming.* .x64)'
6769 timeoutInMinutes : 120
6870 cancelTimeoutInMinutes : 1
6971 steps :
@@ -99,12 +101,17 @@ jobs:
99101 - task : NuGetAuthenticate@1
100102 displayName : ' NuGet Auth'
101103 - task : PowerShell@2
102- displayName : ' NuGet Install GDK'
104+ displayName : ' NuGet Install PC GDK'
103105 inputs :
104106 targetType : filePath
105107 filePath : ./build/RestoreGDK.ps1
106108 arguments : -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
107109 failOnStderr : true
110+ - task : NuGetCommand@2
111+ displayName : ' NuGet install Xbox GDK'
112+ inputs :
113+ command : custom
114+ arguments : ' install -directdownload Microsoft.GDK.Xbox -ExcludeVersion -Version $(GDKNuGetPackageVersion) -OutputDirectory $(EXTRACTED_FOLDER)'
108115 - task : CopyFiles@2
109116 displayName : Set up Directory.Build.props
110117 inputs :
@@ -128,8 +135,8 @@ jobs:
128135 msVersion : ' 17.0'
129136 vsYear : 2022
130137
131- - job : BUILD_GDKX
132- displayName : ' Microsoft Game Development Kit (GDK x64)'
138+ - job : BUILD_GDKX_SCAR
139+ displayName : ' Microsoft Game Development Kit (x64+Xbox Series X|S )'
133140 timeoutInMinutes : 120
134141 cancelTimeoutInMinutes : 1
135142 steps :
@@ -164,13 +171,74 @@ jobs:
164171 displayName : ' Secure Supply Chain Analysis'
165172 - task : NuGetAuthenticate@1
166173 displayName : ' NuGet Auth'
174+ - template : ' /.azuredevops/templates/DirectXTK12-setup-gdk-auto.yml'
175+ parameters :
176+ windows : true
177+ scarlett : true
178+ - task : CopyFiles@2
179+ displayName : Set up Directory.Build.props
180+ inputs :
181+ SourceFolder : build
182+ Contents : ' Directory.Build.props'
183+ TargetFolder : $(Build.SourcesDirectory)
184+ - task : MSBuild@1
185+ displayName : Setup BWOI VCTargets
186+ inputs :
187+ solution : build/SetupBWOI.targets
188+ msbuildArchitecture : x64
189+ msbuildArguments : /p:GDKEditionNumber=$(GDK_EDITION)
190+ - task : MSBuild@1
191+ displayName : Log Information
192+ inputs :
193+ solution : build/LogInfo.targets
194+ msbuildArchitecture : x64
195+ msbuildArguments : /p:GDKEditionNumber=$(GDK_EDITION)
196+ - template : ' /.azuredevops/templates/DirectXTK12-build-gdkx.yml'
197+ parameters :
198+ msVersion : ' 17.0'
199+ vsYear : 2022
200+ xboxone : false
201+
202+ - job : BUILD_GDKX_XBONE
203+ displayName : ' Microsoft Game Development Kit (x64+Xbox One)'
204+ timeoutInMinutes : 120
205+ cancelTimeoutInMinutes : 1
206+ steps :
207+ - checkout : self
208+ clean : true
209+ fetchTags : false
210+ fetchDepth : 1
211+ - task : NuGetToolInstaller@1
212+ displayName : ' Use NuGet'
167213 - task : PowerShell@2
168- displayName : ' NuGet Install GDK '
214+ displayName : ' Create nuget.config with single source '
169215 inputs :
170- targetType : filePath
171- filePath : ./build/RestoreGDK.ps1
172- arguments : -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
173- failOnStderr : true
216+ targetType : inline
217+ script : |
218+ $xml = @'
219+ <?xml version="1.0" encoding="utf-8"?>
220+ <configuration>
221+ <packageSources>
222+ <clear />
223+ </packageSources>
224+ </configuration>
225+ '@
226+ $xml | Set-Content -Path "$(Build.SourcesDirectory)\NuGet.config"
227+
228+ - task : NuGetCommand@2
229+ # We have to use a nuget.config to provide the feed for the 'nuget install' option.
230+ displayName : ' NuGet set package source to ADO feed'
231+ inputs :
232+ command : custom
233+ arguments : sources add -Name xboxgdk -Source $(URL_FEED) -ConfigFile $(Build.SourcesDirectory)\NuGet.config
234+ - task : nuget-security-analysis@0
235+ displayName : ' Secure Supply Chain Analysis'
236+ - task : NuGetAuthenticate@1
237+ displayName : ' NuGet Auth'
238+ - template : ' /.azuredevops/templates/DirectXTK12-setup-gdk-auto.yml'
239+ parameters :
240+ windows : true
241+ scarlett : false
174242 - task : CopyFiles@2
175243 displayName : Set up Directory.Build.props
176244 inputs :
@@ -193,9 +261,10 @@ jobs:
193261 parameters :
194262 msVersion : ' 17.0'
195263 vsYear : 2022
264+ scarlett : false
196265
197266 - job : BUILD_GDK_CMAKE_SCAR
198- displayName : ' Microsoft Game Development Kit (GDK) using CMake (Scarlett )'
267+ displayName : ' Microsoft Game Development Kit (GDK) using CMake (Xbox Series X|S )'
199268 timeoutInMinutes : 120
200269 cancelTimeoutInMinutes : 1
201270 steps :
@@ -229,13 +298,10 @@ jobs:
229298 displayName : ' Secure Supply Chain Analysis'
230299 - task : NuGetAuthenticate@1
231300 displayName : ' NuGet Auth'
232- - task : PowerShell@2
233- displayName : ' NuGet Install GDK'
234- inputs :
235- targetType : filePath
236- filePath : ./build/RestoreGDK.ps1
237- arguments : -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
238- failOnStderr : true
301+ - template : ' /.azuredevops/templates/DirectXTK12-setup-gdk-auto.yml'
302+ parameters :
303+ windows : false
304+ scarlett : true
239305 - task : CmdLine@2
240306 displayName : Setup BWOI for GDK command-line
241307 inputs :
@@ -248,7 +314,10 @@ jobs:
248314 echo ##vso[task.prependpath]%WindowsSdkVerBinPath%x64
249315 echo ##vso[task.prependpath]%VCToolsInstallDir%bin\HostX64\x64
250316 call $(Build.SourcesDirectory)\build\SetupBWOI.cmd $(EXTRACTED_FOLDER) $(GDK_EDITION) Scarlett
317+ echo ##vso[task.setvariable variable=GameDK;]%GameDK%
251318 echo ##vso[task.setvariable variable=GameDKLatest;]%GameDKLatest%
319+ echo ##vso[task.setvariable variable=GameDKCoreLatest;]%GameDKCoreLatest%
320+ echo ##vso[task.setvariable variable=GameDKXboxLatest;]%GameDKXboxLatest%
252321 echo ##vso[task.setvariable variable=GRDKLatest;]%GRDKLatest%
253322 echo ##vso[task.setvariable variable=GXDKLatest;]%GXDKLatest%
254323 echo ##vso[task.setvariable variable=INCLUDE;]%INCLUDE%
@@ -346,13 +415,10 @@ jobs:
346415 displayName : ' Secure Supply Chain Analysis'
347416 - task : NuGetAuthenticate@1
348417 displayName : ' NuGet Auth'
349- - task : PowerShell@2
350- displayName : ' NuGet Install GDK'
351- inputs :
352- targetType : filePath
353- filePath : ./build/RestoreGDK.ps1
354- arguments : -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
355- failOnStderr : true
418+ - template : ' /.azuredevops/templates/DirectXTK12-setup-gdk-auto.yml'
419+ parameters :
420+ windows : false
421+ scarlett : false
356422 - task : CmdLine@2
357423 displayName : Setup BWOI for GDK command-line
358424 inputs :
@@ -365,7 +431,10 @@ jobs:
365431 echo ##vso[task.prependpath]%WindowsSdkVerBinPath%x64
366432 echo ##vso[task.prependpath]%VCToolsInstallDir%bin\HostX64\x64
367433 call $(Build.SourcesDirectory)\build\SetupBWOI.cmd $(EXTRACTED_FOLDER) $(GDK_EDITION) XboxOne
434+ echo ##vso[task.setvariable variable=GameDK;]%GameDK%
368435 echo ##vso[task.setvariable variable=GameDKLatest;]%GameDKLatest%
436+ echo ##vso[task.setvariable variable=GameDKCoreLatest;]%GameDKCoreLatest%
437+ echo ##vso[task.setvariable variable=GameDKXboxLatest;]%GameDKXboxLatest%
369438 echo ##vso[task.setvariable variable=GRDKLatest;]%GRDKLatest%
370439 echo ##vso[task.setvariable variable=GXDKLatest;]%GXDKLatest%
371440 echo ##vso[task.setvariable variable=INCLUDE;]%INCLUDE%
@@ -469,13 +538,10 @@ jobs:
469538 displayName : ' Secure Supply Chain Analysis'
470539 - task : NuGetAuthenticate@1
471540 displayName : ' NuGet Auth'
472- - task : PowerShell@2
473- displayName : ' NuGet Install GDK'
474- inputs :
475- targetType : filePath
476- filePath : ./build/RestoreGDK.ps1
477- arguments : -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
478- failOnStderr : true
541+ - template : ' /.azuredevops/templates/DirectXTK12-setup-gdk-auto.yml'
542+ parameters :
543+ windows : false
544+ scarlett : false
479545 - task : NuGetCommand@2
480546 displayName : NuGet restore
481547 inputs :
@@ -566,13 +632,10 @@ jobs:
566632 displayName : ' Secure Supply Chain Analysis'
567633 - task : NuGetAuthenticate@1
568634 displayName : ' NuGet Auth'
569- - task : PowerShell@2
570- displayName : ' NuGet Install GDK'
571- inputs :
572- targetType : filePath
573- filePath : ./build/RestoreGDK.ps1
574- arguments : -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
575- failOnStderr : true
635+ - template : ' /.azuredevops/templates/DirectXTK12-setup-gdk-auto.yml'
636+ parameters :
637+ windows : false
638+ scarlett : true
576639 - task : NuGetCommand@2
577640 displayName : NuGet restore
578641 inputs :
0 commit comments