@@ -32,6 +32,11 @@ resources:
3232 - repository : self
3333 type : git
3434 ref : refs/heads/main
35+ - repository : testRepo
36+ name : walbourn/directxtktest
37+ type : github
38+ endpoint : microsoft
39+ ref : refs/heads/main
3540
3641name : $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
3742
@@ -248,3 +253,110 @@ jobs:
248253 inputs :
249254 cwd : ' $(Build.SourcesDirectory)'
250255 cmakeArgs : --build out\build\x64-Debug-GDK
256+
257+ - job : BUILD_GDKW
258+ condition : ge(variables.GDKEditionNumber, '251000')
259+ displayName : ' Microsoft Game Development Kit (ARM64+x64)'
260+ timeoutInMinutes : 120
261+ cancelTimeoutInMinutes : 1
262+ steps :
263+ - checkout : self
264+ clean : true
265+ fetchTags : false
266+ fetchDepth : 1
267+ path : ' s'
268+ - checkout : testRepo
269+ displayName : Fetch Tests
270+ clean : true
271+ fetchTags : false
272+ fetchDepth : 1
273+ path : ' s/Tests'
274+ - task : NuGetToolInstaller@1
275+ displayName : ' Use NuGet'
276+ - task : PowerShell@2
277+ displayName : ' Create nuget.config with single source'
278+ inputs :
279+ targetType : inline
280+ script : |
281+ $xml = @'
282+ <?xml version="1.0" encoding="utf-8"?>
283+ <configuration>
284+ <packageSources>
285+ <clear />
286+ </packageSources>
287+ </configuration>
288+ '@
289+ $xml | Set-Content -Path "$(Build.SourcesDirectory)\NuGet.config"
290+
291+ - task : NuGetCommand@2
292+ # We have to use a nuget.config to provide the feed for the 'nuget install' option.
293+ displayName : ' NuGet set package source to ADO feed'
294+ inputs :
295+ command : custom
296+ arguments : sources add -Name xboxgdk -Source $(URL_FEED) -ConfigFile $(Build.SourcesDirectory)\NuGet.config
297+ - task : nuget-security-analysis@0
298+ displayName : ' Secure Supply Chain Analysis'
299+ - task : NuGetAuthenticate@1
300+ displayName : ' NuGet Auth'
301+ - task : PowerShell@2
302+ displayName : ' NuGet Install GDK'
303+ inputs :
304+ targetType : filePath
305+ filePath : ./build/RestoreGDK.ps1
306+ arguments : -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER) -NewLayout
307+ failOnStderr : true
308+ - task : NuGetCommand@2
309+ displayName : ' NuGet install GDK (Windows)'
310+ inputs :
311+ command : custom
312+ arguments : >
313+ install -directdownload Microsoft.GDK.Windows -ExcludeVersion -Version $(GDKNuGetPackageVersion)
314+ -OutputDirectory $(EXTRACTED_FOLDER)
315+ - task : CopyFiles@2
316+ displayName : Set up Directory.Build.props
317+ inputs :
318+ SourceFolder : build
319+ Contents : ' Directory.Build.props'
320+ TargetFolder : $(Build.SourcesDirectory)
321+ - task : MSBuild@1
322+ displayName : Log Information
323+ inputs :
324+ solution : build/LogInfo.targets
325+ msbuildArchitecture : x64
326+ msbuildArguments : /p:GDKEditionNumber=$(GDK_EDITION)
327+ - task : VSBuild@1
328+ displayName : Build arm64dbg
329+ continueOnError : true
330+ inputs :
331+ solution : ' **\*GDKW_2022*.sln'
332+ platform : ARM64
333+ configuration : Debug
334+ msbuildArchitecture : x64
335+ msbuildArgs : /p:GDKEditionNumber=$(GDK_EDITION)
336+ - task : VSBuild@1
337+ displayName : Build arm64rel
338+ continueOnError : true
339+ inputs :
340+ solution : ' **\*GDKW_2022*.sln'
341+ platform : ARM64
342+ configuration : Release
343+ msbuildArchitecture : x64
344+ msbuildArgs : /p:GDKEditionNumber=$(GDK_EDITION)
345+ - task : VSBuild@1
346+ displayName : Build x64dbg
347+ continueOnError : true
348+ inputs :
349+ solution : ' **\*GDKW_2022*.sln'
350+ platform : x64
351+ configuration : Debug
352+ msbuildArchitecture : x64
353+ msbuildArgs : /p:GDKEditionNumber=$(GDK_EDITION)
354+ - task : VSBuild@1
355+ displayName : Build x64rel
356+ continueOnError : true
357+ inputs :
358+ solution : ' **\*GDKW_2022*.sln'
359+ platform : x64
360+ configuration : Release
361+ msbuildArchitecture : x64
362+ msbuildArgs : /p:GDKEditionNumber=$(GDK_EDITION)
0 commit comments