2023-11-29 19:00:59 +00:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
|
|
|
# Licensed under the MIT License.
|
|
|
|
#
|
|
|
|
# http://go.microsoft.com/fwlink/?LinkId=248926
|
|
|
|
|
2024-05-04 19:47:09 +00:00
|
|
|
# Builds the library using the Microsoft GDK.
|
2023-11-29 19:00:59 +00:00
|
|
|
|
|
|
|
# NOTE: We use x64 MSBuild for the GDK as the NuGets don't include 32-bit support to avoid cross-arch dependencies.
|
|
|
|
|
|
|
|
schedules:
|
|
|
|
- cron: "30 3 * * *"
|
|
|
|
displayName: 'Nightly build'
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- main
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
exclude:
|
2024-04-04 03:48:00 +00:00
|
|
|
- '*.md'
|
2023-11-29 19:00:59 +00:00
|
|
|
- LICENSE
|
2024-04-04 03:48:00 +00:00
|
|
|
- CMake*
|
2024-07-30 03:13:36 +00:00
|
|
|
- '.github/*'
|
2024-04-04 03:48:00 +00:00
|
|
|
- '.nuget/*'
|
|
|
|
- build/*.cmake
|
2024-05-04 19:47:09 +00:00
|
|
|
- build/*.cmd
|
2024-04-04 03:48:00 +00:00
|
|
|
- build/*.in
|
|
|
|
- build/*.json
|
|
|
|
- build/*.ps1
|
|
|
|
|
2023-11-29 19:00:59 +00:00
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
exclude:
|
2024-04-04 03:48:00 +00:00
|
|
|
- '*.md'
|
2023-11-29 19:00:59 +00:00
|
|
|
- LICENSE
|
2024-04-04 03:48:00 +00:00
|
|
|
- CMake*
|
2024-07-30 03:13:36 +00:00
|
|
|
- '.github/*'
|
2024-04-04 03:48:00 +00:00
|
|
|
- '.nuget/*'
|
|
|
|
- build/*.cmake
|
2024-05-04 19:47:09 +00:00
|
|
|
- build/*.cmd
|
2024-04-04 03:48:00 +00:00
|
|
|
- build/*.in
|
|
|
|
- build/*.json
|
|
|
|
- build/*.ps1
|
2023-11-29 19:00:59 +00:00
|
|
|
drafts: false
|
|
|
|
|
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: self
|
|
|
|
type: git
|
|
|
|
ref: refs/heads/main
|
|
|
|
|
|
|
|
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: windows-2019
|
|
|
|
|
|
|
|
variables:
|
2024-05-14 19:18:03 +00:00
|
|
|
Codeql.Enabled: false
|
2023-11-29 19:00:59 +00:00
|
|
|
EXTRACTED_FOLDER: $(ExtractedFolder)
|
|
|
|
GDK_EDITION: $(GDKEditionNumber)
|
|
|
|
GDKEnableBWOI: true
|
|
|
|
URL_FEED: $(ADOFeedURL)
|
2024-03-30 01:31:10 +00:00
|
|
|
skipNugetSecurityAnalysis: true # We explicitly call this task so we don't need it to be auto-injected
|
2023-11-29 19:00:59 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: BUILD_GDK
|
|
|
|
displayName: 'Microsoft Game Development Kit (GDK)'
|
|
|
|
timeoutInMinutes: 120
|
|
|
|
cancelTimeoutInMinutes: 1
|
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
clean: true
|
|
|
|
fetchTags: false
|
|
|
|
- task: NuGetToolInstaller@1
|
|
|
|
displayName: 'Use NuGet'
|
|
|
|
- task: PowerShell@2
|
2024-03-30 01:31:10 +00:00
|
|
|
displayName: 'Create nuget.config with single source'
|
2023-11-29 19:00:59 +00:00
|
|
|
inputs:
|
|
|
|
targetType: inline
|
|
|
|
script: |
|
2024-03-30 01:31:10 +00:00
|
|
|
$xml = @'
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<configuration>
|
|
|
|
<packageSources>
|
|
|
|
<clear />
|
|
|
|
</packageSources>
|
|
|
|
</configuration>
|
|
|
|
'@
|
|
|
|
$xml | Set-Content -Path "$(Build.SourcesDirectory)\NuGet.config"
|
2023-11-29 19:00:59 +00:00
|
|
|
|
2024-03-30 01:31:10 +00:00
|
|
|
- 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'
|
2024-09-12 19:35:45 +00:00
|
|
|
- task: NuGetAuthenticate@1
|
|
|
|
displayName: 'NuGet Auth'
|
2023-11-29 19:00:59 +00:00
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: NuGet install PGDK
|
|
|
|
inputs:
|
|
|
|
command: custom
|
2024-09-16 18:18:23 +00:00
|
|
|
arguments: install -prerelease Microsoft.GDK.PC.$(GDK_EDITION) -ExcludeVersion -OutputDirectory $(EXTRACTED_FOLDER)
|
2023-11-29 19:00:59 +00:00
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: NuGet install GDKX
|
|
|
|
inputs:
|
|
|
|
command: custom
|
2024-09-16 18:18:23 +00:00
|
|
|
arguments: install -prerelease Microsoft.GDK.Xbox.$(GDK_EDITION) -ExcludeVersion -OutputDirectory $(EXTRACTED_FOLDER)
|
2023-11-29 19:00:59 +00:00
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: Set up Directory.Build.props
|
|
|
|
inputs:
|
|
|
|
SourceFolder: build
|
|
|
|
Contents: 'Directory.Build.props'
|
|
|
|
TargetFolder: $(Build.SourcesDirectory)
|
|
|
|
- task: MSBuild@1
|
|
|
|
displayName: Setup BWOI VCTargets
|
|
|
|
inputs:
|
|
|
|
solution: build/SetupBWOI.targets
|
|
|
|
msbuildVersion: 16.0
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution DirectXTex_GDK_2019 pcdbg
|
|
|
|
continueOnError: True
|
|
|
|
inputs:
|
|
|
|
solution: DirectXTex_GDK_2019.sln
|
|
|
|
vsVersion: 16.0
|
|
|
|
platform: Gaming.Desktop.x64
|
|
|
|
configuration: Debug
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution DirectXTex_GDK_2019 pcrel
|
|
|
|
continueOnError: True
|
|
|
|
inputs:
|
|
|
|
solution: DirectXTex_GDK_2019.sln
|
|
|
|
vsVersion: 16.0
|
|
|
|
platform: Gaming.Desktop.x64
|
|
|
|
configuration: Release
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution DirectXTex_GDK_2019 xbdbg
|
|
|
|
continueOnError: True
|
|
|
|
inputs:
|
|
|
|
solution: DirectXTex_GDK_2019.sln
|
|
|
|
vsVersion: 16.0
|
|
|
|
platform: Gaming.Xbox.XboxOne.x64
|
|
|
|
configuration: Debug
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution DirectXTex_GDK_2019 xbrel
|
|
|
|
continueOnError: True
|
|
|
|
inputs:
|
|
|
|
solution: DirectXTex_GDK_2019.sln
|
|
|
|
vsVersion: 16.0
|
|
|
|
platform: Gaming.Xbox.XboxOne.x64
|
|
|
|
configuration: Release
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution DirectXTex_GDK_2019 scardbg
|
|
|
|
continueOnError: True
|
|
|
|
inputs:
|
|
|
|
solution: DirectXTex_GDK_2019.sln
|
|
|
|
vsVersion: 16.0
|
|
|
|
platform: Gaming.Xbox.Scarlett.x64
|
|
|
|
configuration: Debug
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution DirectXTex_GDK_2019 scarrel
|
|
|
|
continueOnError: True
|
|
|
|
inputs:
|
|
|
|
solution: DirectXTex_GDK_2019.sln
|
|
|
|
vsVersion: 16.0
|
|
|
|
platform: Gaming.Xbox.Scarlett.x64
|
|
|
|
configuration: Release
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution DirectXTex_GDK_PC_2019 dbg
|
|
|
|
continueOnError: True
|
|
|
|
inputs:
|
|
|
|
solution: DirectXTex_GXDK_PC_2019.sln
|
|
|
|
vsVersion: 16.0
|
|
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
|
|
platform: x64
|
|
|
|
configuration: Debug
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution DirectXTex_GDK_PC_2019 rel
|
|
|
|
continueOnError: True
|
|
|
|
inputs:
|
|
|
|
solution: DirectXTex_GXDK_PC_2019.sln
|
|
|
|
vsVersion: 16.0
|
|
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
|
|
platform: x64
|
|
|
|
configuration: Release
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution DirectXTex_GDK_PC_2019 scardbg
|
|
|
|
continueOnError: True
|
|
|
|
inputs:
|
|
|
|
solution: DirectXTex_GXDK_PC_2019.sln
|
|
|
|
vsVersion: 16.0
|
|
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
|
|
platform: x64
|
|
|
|
configuration: Debug_Scarlett
|
|
|
|
msbuildArchitecture: x64
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build solution DirectXTex_GDK_PC_2019 scarrel
|
|
|
|
continueOnError: True
|
|
|
|
inputs:
|
|
|
|
solution: DirectXTex_GXDK_PC_2019.sln
|
|
|
|
vsVersion: 16.0
|
|
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
|
|
platform: x64
|
|
|
|
configuration: Release_Scarlett
|
|
|
|
msbuildArchitecture: x64
|