Update ADO pipeline to use GDK new layouts for 2510 (#649)

This commit is contained in:
Chuck Walbourn
2025-11-14 15:53:19 -08:00
committed by GitHub
parent 2f50e14ec2
commit 00f3eb20d0
13 changed files with 532 additions and 222 deletions

View File

@@ -65,8 +65,8 @@ pool:
vmImage: windows-2022
jobs:
- job: CMAKE_BUILD
displayName: CMake using VS Generator
- job: CMAKE_BUILD_VS_SCAR
displayName: CMake using VS Generator (x64+Xbox Series X|S)
steps:
- checkout: self
clean: true
@@ -98,13 +98,19 @@ jobs:
displayName: 'Secure Supply Chain Analysis'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: PowerShell@2
displayName: 'NuGet Install GDK'
- template: '/.azuredevops/templates/DirectXTex-setup-gdk-auto.yml'
parameters:
windows: true
scarlett: true
- task: CmdLine@2
displayName: Setup required env variables
inputs:
targetType: filePath
filePath: ./build/RestoreGDK.ps1
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
failOnStderr: true
script: |
call $(Build.SourcesDirectory)\build\SetupBWOI.cmd $(EXTRACTED_FOLDER) $(GDK_EDITION) Scarlett
echo ##vso[task.setvariable variable=GameDK;]%GameDK%
echo ##vso[task.setvariable variable=GameDKLatest;]%GameDKLatest%
echo ##vso[task.setvariable variable=GameDKXboxLatest;]%GameDKXboxLatest%
- task: CMake@1
displayName: 'CMake (MSVC): Config x64 (Xbox Series X|S)'
inputs:
@@ -141,48 +147,12 @@ jobs:
inputs:
cwd: ''
cmakeArgs: --build out2 -v --config RelWithDebInfo
- task: CMake@1
displayName: 'CMake (MSVC): Config x64 (Xbox One)'
inputs:
cwd: ''
cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out3
-DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DBUILD_XBOX_EXTS_XBOXONE=ON -DBUILD_SAMPLE=OFF
- task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug (Xbox One)'
inputs:
cwd: ''
cmakeArgs: --build out3 -v --config Debug
- task: CMake@1
displayName: 'CMake (MSVC): Build x64 Release (Xbox One)'
inputs:
cwd: ''
cmakeArgs: --build out3 -v --config RelWithDebInfo
- task: CMake@1
displayName: 'CMake (ClangCl): Config x64 (Xbox One)'
inputs:
cwd: ''
cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -T clangcl -B out4
-DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DBUILD_XBOX_EXTS_XBOXONE=ON -DBUILD_SAMPLE=OFF
- task: CMake@1
displayName: 'CMake (ClangCl): Build x64 Debug (Xbox One)'
inputs:
cwd: ''
cmakeArgs: --build out4 -v --config Debug
- task: CMake@1
displayName: 'CMake (ClangCl): Build x64 Release (Xbox One)'
inputs:
cwd: ''
cmakeArgs: --build out4 -v --config RelWithDebInfo
- task: CMake@1
displayName: 'CMake (DLL): Config x64 (Xbox Series X|S)'
inputs:
cwd: ''
cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out5
-G "$(VS_GENERATOR)" -A x64 -B out3
-DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DBUILD_XBOX_EXTS_SCARLETT=ON -DBUILD_SAMPLE=OFF
-DBUILD_SHARED_LIBS=ON
@@ -190,13 +160,101 @@ jobs:
displayName: 'CMake (DLL): Build x64 Debug (Xbox Series X|S)'
inputs:
cwd: ''
cmakeArgs: --build out5 -v --config Debug
cmakeArgs: --build out3 -v --config Debug
- task: CMake@1
displayName: 'CMake (DLL): Build x64 Release (Xbox Series X|S)'
inputs:
cwd: ''
cmakeArgs: --build out3 -v --config RelWithDebInfo
- job: CMAKE_BUILD_VS_XBONE
displayName: CMake using VS Generator (x64+Xbox One)
steps:
- checkout: self
clean: true
fetchTags: false
- task: NuGetToolInstaller@1
displayName: 'Use NuGet'
- task: PowerShell@2
displayName: 'Create nuget.config with single source'
inputs:
targetType: inline
script: |
$xml = @'
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
</packageSources>
</configuration>
'@
$xml | Set-Content -Path "$(Build.SourcesDirectory)\NuGet.config"
- task: NuGetCommand@2
# We have to use a nuget.config to provide the feed for the 'nuget install' option.
displayName: 'NuGet set package source to ADO feed'
inputs:
command: custom
arguments: sources add -Name xboxgdk -Source $(URL_FEED) -ConfigFile $(Build.SourcesDirectory)\NuGet.config
- task: nuget-security-analysis@0
displayName: 'Secure Supply Chain Analysis'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- template: '/.azuredevops/templates/DirectXTex-setup-gdk-auto.yml'
parameters:
windows: true
scarlett: false
- task: CmdLine@2
displayName: Setup required env variables
inputs:
script: |
call $(Build.SourcesDirectory)\build\SetupBWOI.cmd $(EXTRACTED_FOLDER) $(GDK_EDITION) XboxOne
echo ##vso[task.setvariable variable=GameDK;]%GameDK%
echo ##vso[task.setvariable variable=GameDKLatest;]%GameDKLatest%
echo ##vso[task.setvariable variable=GameDKXboxLatest;]%GameDKXboxLatest%
- task: CMake@1
displayName: 'CMake (MSVC): Config x64 (Xbox One)'
inputs:
cwd: ''
cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out
-DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DBUILD_XBOX_EXTS_XBOXONE=ON -DBUILD_SAMPLE=OFF
- task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug (Xbox One)'
inputs:
cwd: ''
cmakeArgs: --build out -v --config Debug
- task: CMake@1
displayName: 'CMake (MSVC): Build x64 Release (Xbox One)'
inputs:
cwd: ''
cmakeArgs: --build out -v --config RelWithDebInfo
- task: CMake@1
displayName: 'CMake (ClangCl): Config x64 (Xbox One)'
inputs:
cwd: ''
cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -T clangcl -B out2
-DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DBUILD_XBOX_EXTS_XBOXONE=ON -DBUILD_SAMPLE=OFF
- task: CMake@1
displayName: 'CMake (ClangCl): Build x64 Debug (Xbox One)'
inputs:
cwd: ''
cmakeArgs: --build out2 -v --config Debug
- task: CMake@1
displayName: 'CMake (ClangCl): Build x64 Release (Xbox One)'
inputs:
cwd: ''
cmakeArgs: --build out2 -v --config RelWithDebInfo
- task: CMake@1
displayName: 'CMake (DLL): Config x64 (Xbox One)'
inputs:
cwd: ''
cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out6
-G "$(VS_GENERATOR)" -A x64 -B out3
-DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DBUILD_XBOX_EXTS_XBOXONE=ON -DBUILD_SAMPLE=OFF
-DBUILD_SHARED_LIBS=ON
@@ -204,7 +262,12 @@ jobs:
displayName: 'CMake (DLL): Build x64 Debug (Xbox One)'
inputs:
cwd: ''
cmakeArgs: --build out6 -v --config Debug
cmakeArgs: --build out3 -v --config Debug
- task: CMake@1
displayName: 'CMake (DLL): Build x64 Release (Xbox One)'
inputs:
cwd: ''
cmakeArgs: --build out3 -v --config Release
- job: BUILD_GDK_CMAKE_XS
displayName: 'Xbox Series X|S Extensions BUILD_TESTING=ON'
@@ -249,13 +312,10 @@ jobs:
displayName: 'Secure Supply Chain Analysis'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: PowerShell@2
displayName: 'NuGet Install GDK'
inputs:
targetType: filePath
filePath: ./build/RestoreGDK.ps1
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
failOnStderr: true
- template: '/.azuredevops/templates/DirectXTex-setup-gdk-auto.yml'
parameters:
windows: true
scarlett: true
- task: CmdLine@2
displayName: Setup BWOI for GDK command-line
inputs:
@@ -268,7 +328,10 @@ jobs:
echo ##vso[task.prependpath]%WindowsSdkVerBinPath%x64
echo ##vso[task.prependpath]%VCToolsInstallDir%bin\HostX64\x64
call $(Build.SourcesDirectory)\build\SetupBWOI.cmd $(EXTRACTED_FOLDER) $(GDK_EDITION) Scarlett
echo ##vso[task.setvariable variable=GameDK;]%GameDK%
echo ##vso[task.setvariable variable=GameDKLatest;]%GameDKLatest%
echo ##vso[task.setvariable variable=GameDKCoreLatest;]%GameDKCoreLatest%
echo ##vso[task.setvariable variable=GameDKXboxLatest;]%GameDKXboxLatest%
echo ##vso[task.setvariable variable=GRDKLatest;]%GRDKLatest%
echo ##vso[task.setvariable variable=GXDKLatest;]%GXDKLatest%
echo ##vso[task.setvariable variable=INCLUDE;]%INCLUDE%
@@ -340,13 +403,10 @@ jobs:
displayName: 'Secure Supply Chain Analysis'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: PowerShell@2
displayName: 'NuGet Install GDK'
inputs:
targetType: filePath
filePath: ./build/RestoreGDK.ps1
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
failOnStderr: true
- template: '/.azuredevops/templates/DirectXTex-setup-gdk-auto.yml'
parameters:
windows: true
scarlett: false
- task: CmdLine@2
displayName: Setup BWOI for GDK command-line
inputs:
@@ -359,7 +419,10 @@ jobs:
echo ##vso[task.prependpath]%WindowsSdkVerBinPath%x64
echo ##vso[task.prependpath]%VCToolsInstallDir%bin\HostX64\x64
call $(Build.SourcesDirectory)\build\SetupBWOI.cmd $(EXTRACTED_FOLDER) $(GDK_EDITION) XboxOne
echo ##vso[task.setvariable variable=GameDK;]%GameDK%
echo ##vso[task.setvariable variable=GameDKLatest;]%GameDKLatest%
echo ##vso[task.setvariable variable=GameDKCoreLatest;]%GameDKCoreLatest%
echo ##vso[task.setvariable variable=GameDKXboxLatest;]%GameDKXboxLatest%
echo ##vso[task.setvariable variable=GRDKLatest;]%GRDKLatest%
echo ##vso[task.setvariable variable=GXDKLatest;]%GXDKLatest%
echo ##vso[task.setvariable variable=INCLUDE;]%INCLUDE%

View File

@@ -76,7 +76,7 @@ pool:
vmImage: windows-2022
jobs:
- job: CMAKE_BUILD
- job: CMAKE_BUILD_VS
displayName: CMake using VS Generator
steps:
- checkout: self
@@ -116,6 +116,11 @@ jobs:
filePath: ./build/RestoreGDK.ps1
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
failOnStderr: true
- task: NuGetCommand@2
displayName: 'NuGet install Xbox GDK'
inputs:
command: custom
arguments: 'install -directdownload Microsoft.GDK.Xbox -ExcludeVersion -Version $(GDKNuGetPackageVersion) -OutputDirectory $(EXTRACTED_FOLDER)'
- task: CMake@1
displayName: 'CMake (MSVC): Config x64 (Xbox Series X|S)'
inputs:

View File

@@ -22,6 +22,8 @@ pr:
include:
- '.azuredevops/pipelines/DirectXTex-GitHub-GDK-Dev17.yml'
- '.azuredevops/templates/DirectXTex-build-gdk.yml'
- '.azuredevops/templates/DirectXTex-build-gdkx.yml'
- '.azuredevops/templates/DirectXTex-setup-gdk-auto.yml'
- CMakeList.txt
- build/*.in
- build/*.cmake
@@ -59,7 +61,7 @@ variables:
jobs:
- job: BUILD_GDK
displayName: 'Microsoft Game Development Kit (GDK Gaming.Desktop.x64)'
displayName: 'Microsoft Game Development Kit (Gaming.*.x64)'
timeoutInMinutes: 120
cancelTimeoutInMinutes: 1
steps:
@@ -94,12 +96,17 @@ jobs:
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: PowerShell@2
displayName: 'NuGet Install GDK'
displayName: 'NuGet Install PC GDK'
inputs:
targetType: filePath
filePath: ./build/RestoreGDK.ps1
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
failOnStderr: true
- task: NuGetCommand@2
displayName: 'NuGet install Xbox GDK'
inputs:
command: custom
arguments: 'install -directdownload Microsoft.GDK.Xbox -ExcludeVersion -Version $(GDKNuGetPackageVersion) -OutputDirectory $(EXTRACTED_FOLDER)'
- task: CopyFiles@2
displayName: Set up Directory.Build.props
inputs:
@@ -123,8 +130,8 @@ jobs:
msVersion: '17.0'
vsYear: 2022
- job: BUILD_GDKX
displayName: 'Microsoft Game Development Kit (GDK x64)'
- job: BUILD_GDKX_SCAR
displayName: 'Microsoft Game Development Kit (x64+Xbox Series X|S)'
timeoutInMinutes: 120
cancelTimeoutInMinutes: 1
steps:
@@ -158,13 +165,10 @@ jobs:
displayName: 'Secure Supply Chain Analysis'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: PowerShell@2
displayName: 'NuGet Install GDK'
inputs:
targetType: filePath
filePath: ./build/RestoreGDK.ps1
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
failOnStderr: true
- template: '/.azuredevops/templates/DirectXTex-setup-gdk-auto.yml'
parameters:
windows: true
scarlett: true
- task: CopyFiles@2
displayName: Set up Directory.Build.props
inputs:
@@ -187,9 +191,10 @@ jobs:
parameters:
msVersion: '17.0'
vsYear: 2022
xboxone: false
- job: BUILD_GDK_CMAKE_SCAR
displayName: 'Microsoft Game Development Kit (GDK) using CMake (Scarlett)'
- job: BUILD_GDKX_XBONE
displayName: 'Microsoft Game Development Kit (x64+Xbox One)'
timeoutInMinutes: 120
cancelTimeoutInMinutes: 1
steps:
@@ -223,13 +228,73 @@ jobs:
displayName: 'Secure Supply Chain Analysis'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: PowerShell@2
displayName: 'NuGet Install GDK'
- template: '/.azuredevops/templates/DirectXTex-setup-gdk-auto.yml'
parameters:
windows: true
scarlett: false
- task: CopyFiles@2
displayName: Set up Directory.Build.props
inputs:
targetType: filePath
filePath: ./build/RestoreGDK.ps1
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
failOnStderr: true
SourceFolder: build
Contents: 'Directory.Build.props'
TargetFolder: $(Build.SourcesDirectory)
- task: MSBuild@1
displayName: Setup BWOI VCTargets
inputs:
solution: build/SetupBWOI.targets
msbuildArchitecture: x64
msbuildArguments: /p:GDKEditionNumber=$(GDK_EDITION)
- task: MSBuild@1
displayName: Log Information
inputs:
solution: build/LogInfo.targets
msbuildArchitecture: x64
msbuildArguments: /p:GDKEditionNumber=$(GDK_EDITION)
- template: '/.azuredevops/templates/DirectXTex-build-gdkx.yml'
parameters:
msVersion: '17.0'
vsYear: 2022
scarlett: false
- job: BUILD_GDK_CMAKE_SCAR
displayName: 'Microsoft Game Development Kit (GDK) using CMake (Xbox Series X|S)'
timeoutInMinutes: 120
cancelTimeoutInMinutes: 1
steps:
- checkout: self
clean: true
fetchTags: false
- task: NuGetToolInstaller@1
displayName: 'Use NuGet'
- task: PowerShell@2
displayName: 'Create nuget.config with single source'
inputs:
targetType: inline
script: |
$xml = @'
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
</packageSources>
</configuration>
'@
$xml | Set-Content -Path "$(Build.SourcesDirectory)\NuGet.config"
- task: NuGetCommand@2
# We have to use a nuget.config to provide the feed for the 'nuget install' option.
displayName: 'NuGet set package source to ADO feed'
inputs:
command: custom
arguments: sources add -Name xboxgdk -Source $(URL_FEED) -ConfigFile $(Build.SourcesDirectory)\NuGet.config
- task: nuget-security-analysis@0
displayName: 'Secure Supply Chain Analysis'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- template: '/.azuredevops/templates/DirectXTex-setup-gdk-auto.yml'
parameters:
windows: false
scarlett: true
- task: CmdLine@2
displayName: Setup BWOI for GDK command-line
inputs:
@@ -242,7 +307,10 @@ jobs:
echo ##vso[task.prependpath]%WindowsSdkVerBinPath%x64
echo ##vso[task.prependpath]%VCToolsInstallDir%bin\HostX64\x64
call $(Build.SourcesDirectory)\build\SetupBWOI.cmd $(EXTRACTED_FOLDER) $(GDK_EDITION) Scarlett
echo ##vso[task.setvariable variable=GameDK;]%GameDK%
echo ##vso[task.setvariable variable=GameDKLatest;]%GameDKLatest%
echo ##vso[task.setvariable variable=GameDKCoreLatest;]%GameDKCoreLatest%
echo ##vso[task.setvariable variable=GameDKXboxLatest;]%GameDKXboxLatest%
echo ##vso[task.setvariable variable=GRDKLatest;]%GRDKLatest%
echo ##vso[task.setvariable variable=GXDKLatest;]%GXDKLatest%
echo ##vso[task.setvariable variable=INCLUDE;]%INCLUDE%
@@ -339,13 +407,10 @@ jobs:
displayName: 'Secure Supply Chain Analysis'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: PowerShell@2
displayName: 'NuGet Install GDK'
inputs:
targetType: filePath
filePath: ./build/RestoreGDK.ps1
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
failOnStderr: true
- template: '/.azuredevops/templates/DirectXTex-setup-gdk-auto.yml'
parameters:
windows: false
scarlett: false
- task: CmdLine@2
displayName: Setup BWOI for GDK command-line
inputs:
@@ -358,7 +423,10 @@ jobs:
echo ##vso[task.prependpath]%WindowsSdkVerBinPath%x64
echo ##vso[task.prependpath]%VCToolsInstallDir%bin\HostX64\x64
call $(Build.SourcesDirectory)\build\SetupBWOI.cmd $(EXTRACTED_FOLDER) $(GDK_EDITION) XboxOne
echo ##vso[task.setvariable variable=GameDK;]%GameDK%
echo ##vso[task.setvariable variable=GameDKLatest;]%GameDKLatest%
echo ##vso[task.setvariable variable=GameDKCoreLatest;]%GameDKCoreLatest%
echo ##vso[task.setvariable variable=GameDKXboxLatest;]%GameDKXboxLatest%
echo ##vso[task.setvariable variable=GRDKLatest;]%GRDKLatest%
echo ##vso[task.setvariable variable=GXDKLatest;]%GXDKLatest%
echo ##vso[task.setvariable variable=INCLUDE;]%INCLUDE%

View File

@@ -112,12 +112,17 @@ jobs:
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: PowerShell@2
displayName: 'NuGet Install GDK'
displayName: 'NuGet Install PC GDK'
inputs:
targetType: filePath
filePath: ./build/RestoreGDK.ps1
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
failOnStderr: true
- task: NuGetCommand@2
displayName: 'NuGet install Xbox GDK'
inputs:
command: custom
arguments: 'install -directdownload Microsoft.GDK.Xbox -ExcludeVersion -Version $(GDKNuGetPackageVersion) -OutputDirectory $(EXTRACTED_FOLDER)'
- task: CopyFiles@2
displayName: Set up Directory.Build.props
inputs:

View File

@@ -14,6 +14,12 @@ parameters:
type: number
values:
- 2022
- name: scarlett
type: boolean
default: true
- name: xboxone
type: boolean
default: true
steps:
- task: VSBuild@1
@@ -38,6 +44,7 @@ steps:
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
- task: VSBuild@1
displayName: Build solution DirectXTex_GDKX_${{ parameters.vsYear }} xbdbg
condition: eq(${{ parameters.xboxone }}, true)
continueOnError: true
inputs:
solution: DirectXTex_GDKX_${{ parameters.vsYear }}.sln
@@ -48,6 +55,7 @@ steps:
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
- task: VSBuild@1
displayName: Build solution DirectXTex_GDKX_${{ parameters.vsYear }} xbrel
condition: eq(${{ parameters.xboxone }}, true)
continueOnError: true
inputs:
solution: DirectXTex_GDKX_${{ parameters.vsYear }}.sln
@@ -58,6 +66,7 @@ steps:
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
- task: VSBuild@1
displayName: Build solution DirectXTex_GDKX_${{ parameters.vsYear }} scardbg
condition: eq(${{ parameters.scarlett }}, true)
continueOnError: true
inputs:
solution: DirectXTex_GDKX_${{ parameters.vsYear }}.sln
@@ -68,6 +77,7 @@ steps:
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
- task: VSBuild@1
displayName: Build solution DirectXTex_GDKX_${{ parameters.vsYear }} scarrel
condition: eq(${{ parameters.scarlett }}, true)
continueOnError: true
inputs:
solution: DirectXTex_GDKX_${{ parameters.vsYear }}.sln
@@ -78,6 +88,7 @@ steps:
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
- task: VSBuild@1
displayName: Build solution DirectXTex_GDK_PC_${{ parameters.vsYear }} dbg
condition: eq(${{ parameters.xboxone }}, true)
continueOnError: true
inputs:
solution: DirectXTex_GXDK_PC_${{ parameters.vsYear }}.sln
@@ -88,6 +99,7 @@ steps:
msbuildArgs: /p:PreferredToolArchitecture=x64 /p:GDKEditionNumber=$(GDK_EDITION)
- task: VSBuild@1
displayName: Build solution DirectXTex_GDK_PC_${{ parameters.vsYear }} rel
condition: eq(${{ parameters.xboxone }}, true)
continueOnError: true
inputs:
solution: DirectXTex_GXDK_PC_${{ parameters.vsYear }}.sln
@@ -98,6 +110,7 @@ steps:
msbuildArgs: /p:PreferredToolArchitecture=x64 /p:GDKEditionNumber=$(GDK_EDITION)
- task: VSBuild@1
displayName: Build solution DirectXTex_GDK_PC_${{ parameters.vsYear }} scardbg
condition: eq(${{ parameters.scarlett }}, true)
continueOnError: true
inputs:
solution: DirectXTex_GXDK_PC_${{ parameters.vsYear }}.sln
@@ -108,6 +121,7 @@ steps:
msbuildArgs: /p:PreferredToolArchitecture=x64 /p:GDKEditionNumber=$(GDK_EDITION)
- task: VSBuild@1
displayName: Build solution DirectXTex_GDK_PC_${{ parameters.vsYear }} scarrel
condition: eq(${{ parameters.scarlett }}, true)
continueOnError: true
inputs:
solution: DirectXTex_GXDK_PC_${{ parameters.vsYear }}.sln

View File

@@ -0,0 +1,55 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# http://go.microsoft.com/fwlink/?LinkId=248926
# Template used by GitHub-GDK-* pipelines
parameters:
- name: windows
type: boolean
default: true
- name: scarlett
type: boolean
default: true
steps:
- task: PowerShell@2
displayName: 'NuGet Install GDK'
inputs:
targetType: filePath
filePath: ./build/RestoreGDK.ps1
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER) -AutoLayout
failOnStderr: true
- task: NuGetCommand@2
displayName: 'NuGet install GDK (Windows)'
condition: and(ge(variables.GDKEditionNumber, '251000'), eq(${{ parameters.windows }}, true))
inputs:
command: custom
arguments: >
install -directdownload Microsoft.GDK.Windows -ExcludeVersion -Version $(GDKNuGetPackageVersion)
-OutputDirectory $(EXTRACTED_FOLDER)
- task: NuGetCommand@2
displayName: 'NuGet install GDK (Xbox Series X|S)'
condition: and(ge(variables.GDKEditionNumber, '251000'), eq(${{ parameters.scarlett }}, true))
inputs:
command: custom
arguments: >
install -directdownload Microsoft.GDK.Xbox.XboxSeriesX_S -ExcludeVersion -Version $(GDKNuGetPackageVersion)
-OutputDirectory $(EXTRACTED_FOLDER)
- task: NuGetCommand@2
displayName: 'NuGet install GDK (Xbox One)'
condition: and(ge(variables.GDKEditionNumber, '251000'), eq(${{ parameters.scarlett }}, false))
inputs:
command: custom
arguments: >
install -directdownload Microsoft.GDK.Xbox.XboxOne -ExcludeVersion -Version $(GDKNuGetPackageVersion)
-OutputDirectory $(EXTRACTED_FOLDER)
- task: NuGetCommand@2
displayName: 'NuGet install GDK (Xbox)'
condition: lt(variables.GDKEditionNumber, '251000')
inputs:
command: custom
arguments: >
install -directdownload Microsoft.GDK.Xbox -ExcludeVersion -Version $(GDKNuGetPackageVersion)
-OutputDirectory $(EXTRACTED_FOLDER)