Skip to content

Commit 69b6dce

Browse files
committed
Add GDK arm64 to pipeline for 2510 or later
1 parent acf7b4c commit 69b6dce

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed

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

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,3 +683,107 @@ jobs:
683683
configuration: Release
684684
msbuildArchitecture: x64
685685
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
686+
687+
- job: BUILD_GDKW
688+
condition: ge(variables.GDKEditionNumber, '251000')
689+
displayName: 'Microsoft Game Development Kit (ARM64+x64)'
690+
timeoutInMinutes: 120
691+
cancelTimeoutInMinutes: 1
692+
steps:
693+
- checkout: self
694+
clean: true
695+
fetchTags: false
696+
fetchDepth: 1
697+
- task: NuGetToolInstaller@1
698+
displayName: 'Use NuGet'
699+
- task: PowerShell@2
700+
displayName: 'Create nuget.config with single source'
701+
inputs:
702+
targetType: inline
703+
script: |
704+
$xml = @'
705+
<?xml version="1.0" encoding="utf-8"?>
706+
<configuration>
707+
<packageSources>
708+
<clear />
709+
</packageSources>
710+
</configuration>
711+
'@
712+
$xml | Set-Content -Path "$(Build.SourcesDirectory)\NuGet.config"
713+
714+
- task: NuGetCommand@2
715+
# We have to use a nuget.config to provide the feed for the 'nuget install' option.
716+
displayName: 'NuGet set package source to ADO feed'
717+
inputs:
718+
command: custom
719+
arguments: sources add -Name xboxgdk -Source $(URL_FEED) -ConfigFile $(Build.SourcesDirectory)\NuGet.config
720+
- task: nuget-security-analysis@0
721+
displayName: 'Secure Supply Chain Analysis'
722+
- task: NuGetAuthenticate@1
723+
displayName: 'NuGet Auth'
724+
- task: PowerShell@2
725+
displayName: 'NuGet Install GDK'
726+
inputs:
727+
targetType: filePath
728+
filePath: ./build/RestoreGDK.ps1
729+
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER) -NewLayout
730+
failOnStderr: true
731+
- task: NuGetCommand@2
732+
displayName: 'NuGet install GDK (Windows)'
733+
inputs:
734+
command: custom
735+
arguments: >
736+
install -directdownload Microsoft.GDK.Windows -ExcludeVersion -Version $(GDKNuGetPackageVersion)
737+
-OutputDirectory $(EXTRACTED_FOLDER)
738+
- task: CopyFiles@2
739+
displayName: Set up Directory.Build.props
740+
inputs:
741+
SourceFolder: build
742+
Contents: 'Directory.Build.props'
743+
TargetFolder: $(Build.SourcesDirectory)
744+
- task: MSBuild@1
745+
displayName: Log Information
746+
inputs:
747+
solution: build/LogInfo.targets
748+
msbuildArchitecture: x64
749+
msbuildArguments: /p:GDKEditionNumber=$(GDK_EDITION)
750+
- task: VSBuild@1
751+
displayName: Build arm64dbg
752+
continueOnError: true
753+
inputs:
754+
solution: '**\*GDKW_2022*.sln'
755+
vsVersion: 17.0
756+
platform: ARM64
757+
configuration: Debug
758+
msbuildArchitecture: x64
759+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
760+
- task: VSBuild@1
761+
displayName: Build arm64rel
762+
continueOnError: true
763+
inputs:
764+
solution: '**\*GDKW_2022*.sln'
765+
vsVersion: 17.0
766+
platform: ARM64
767+
configuration: Release
768+
msbuildArchitecture: x64
769+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
770+
- task: VSBuild@1
771+
displayName: Build x64dbg
772+
continueOnError: true
773+
inputs:
774+
solution: '**\*GDKW_2022*.sln'
775+
vsVersion: 17.0
776+
platform: x64
777+
configuration: Debug
778+
msbuildArchitecture: x64
779+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
780+
- task: VSBuild@1
781+
displayName: Build x64rel
782+
continueOnError: true
783+
inputs:
784+
solution: '**\*GDKW_2022*.sln'
785+
vsVersion: 17.0
786+
platform: x64
787+
configuration: Release
788+
msbuildArchitecture: x64
789+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)

0 commit comments

Comments
 (0)