From 8914cb5c2f10a6e13ea634e9a1df1b8c65b16cd6 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Wed, 11 Sep 2024 22:18:47 -0700 Subject: [PATCH 1/4] Build pipeline updates --- build/DirectXMesh-GitHub-GDK-Dev17.yml | 12 ++++++------ build/DirectXMesh-GitHub-GDK.yml | 4 ++-- build/DirectXMesh-GitHub-SDK-prerelease.yml | 9 +++++---- build/DirectXMesh-GitHub-SDK-release.yml | 9 +++++---- 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/build/DirectXMesh-GitHub-GDK-Dev17.yml b/build/DirectXMesh-GitHub-GDK-Dev17.yml index 32d8b35..4e8b918 100644 --- a/build/DirectXMesh-GitHub-GDK-Dev17.yml +++ b/build/DirectXMesh-GitHub-GDK-Dev17.yml @@ -58,8 +58,6 @@ jobs: fetchTags: false - task: NuGetToolInstaller@1 displayName: 'Use NuGet' - inputs: - versionSpec: '6.5.x' - task: PowerShell@2 displayName: 'Create nuget.config with single source' inputs: @@ -83,6 +81,8 @@ jobs: 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' - task: NuGetCommand@2 displayName: NuGet install PGDK inputs: @@ -170,8 +170,6 @@ jobs: fetchTags: false - task: NuGetToolInstaller@1 displayName: 'Use NuGet' - inputs: - versionSpec: '6.5.x' - task: PowerShell@2 displayName: 'Create nuget.config with single source' inputs: @@ -195,6 +193,8 @@ jobs: 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' - task: NuGetCommand@2 displayName: NuGet install PGDK inputs: @@ -276,8 +276,6 @@ jobs: fetchTags: false - task: NuGetToolInstaller@1 displayName: 'Use NuGet' - inputs: - versionSpec: '6.5.x' - task: PowerShell@2 displayName: 'Create nuget.config with single source' inputs: @@ -301,6 +299,8 @@ jobs: 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' - task: NuGetCommand@2 displayName: NuGet install PGDK inputs: diff --git a/build/DirectXMesh-GitHub-GDK.yml b/build/DirectXMesh-GitHub-GDK.yml index d586552..c4b3f1c 100644 --- a/build/DirectXMesh-GitHub-GDK.yml +++ b/build/DirectXMesh-GitHub-GDK.yml @@ -77,8 +77,6 @@ jobs: fetchTags: false - task: NuGetToolInstaller@1 displayName: 'Use NuGet' - inputs: - versionSpec: '6.5.x' - task: PowerShell@2 displayName: 'Create nuget.config with single source' inputs: @@ -102,6 +100,8 @@ jobs: 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' - task: NuGetCommand@2 displayName: NuGet install PGDK inputs: diff --git a/build/DirectXMesh-GitHub-SDK-prerelease.yml b/build/DirectXMesh-GitHub-SDK-prerelease.yml index 91a3b43..4345dec 100644 --- a/build/DirectXMesh-GitHub-SDK-prerelease.yml +++ b/build/DirectXMesh-GitHub-SDK-prerelease.yml @@ -45,8 +45,6 @@ jobs: fetchTags: false - task: NuGetToolInstaller@1 displayName: 'Use NuGet' - inputs: - versionSpec: '6.5.x' - task: PowerShell@2 displayName: 'Create nuget.config with single source' inputs: @@ -70,6 +68,8 @@ jobs: 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' - task: NuGetCommand@2 displayName: NuGet Install WSDK x64 inputs: @@ -172,8 +172,6 @@ jobs: fetchTags: false - task: NuGetToolInstaller@1 displayName: 'Use NuGet' - inputs: - versionSpec: '6.5.x' - task: PowerShell@2 displayName: 'Create nuget.config with single source' inputs: @@ -196,6 +194,8 @@ jobs: 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' - task: NuGetCommand@2 displayName: NuGet Install WSDK x64 inputs: @@ -245,6 +245,7 @@ jobs: msbuildArgs: /p:PreferredToolArchitecture=x64 platform: x64 configuration: Release + # Windows on ARM 32-bit is deprecated. https://learn.microsoft.com/windows/arm/arm32-to-arm64 - task: VSBuild@1 displayName: Build solution DirectXMesh_Windows10_2022.sln arm64dbg inputs: diff --git a/build/DirectXMesh-GitHub-SDK-release.yml b/build/DirectXMesh-GitHub-SDK-release.yml index 498c92d..5fb9fdb 100644 --- a/build/DirectXMesh-GitHub-SDK-release.yml +++ b/build/DirectXMesh-GitHub-SDK-release.yml @@ -45,8 +45,6 @@ jobs: fetchTags: false - task: NuGetToolInstaller@1 displayName: 'Use NuGet' - inputs: - versionSpec: '6.5.x' - task: PowerShell@2 displayName: 'Create nuget.config with single source' inputs: @@ -70,6 +68,8 @@ jobs: 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' - task: NuGetCommand@2 displayName: NuGet Install WSDK x64 inputs: @@ -172,8 +172,6 @@ jobs: fetchTags: false - task: NuGetToolInstaller@1 displayName: 'Use NuGet' - inputs: - versionSpec: '6.5.x' - task: PowerShell@2 displayName: 'Create nuget.config with single source' inputs: @@ -196,6 +194,8 @@ jobs: 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' - task: NuGetCommand@2 displayName: NuGet Install WSDK x64 inputs: @@ -245,6 +245,7 @@ jobs: msbuildArgs: /p:PreferredToolArchitecture=x64 platform: x64 configuration: Release + # Windows on ARM 32-bit is deprecated. https://learn.microsoft.com/windows/arm/arm32-to-arm64 - task: VSBuild@1 displayName: Build solution DirectXMesh_Windows10_2022.sln arm64dbg inputs: From 0c06ddbc28a600b0199224e3ab9e75eba35c0775 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Wed, 11 Sep 2024 22:19:13 -0700 Subject: [PATCH 2/4] Props updates --- build/Directory.Build.props | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/build/Directory.Build.props b/build/Directory.Build.props index ab3bb53..7107106 100644 --- a/build/Directory.Build.props +++ b/build/Directory.Build.props @@ -18,6 +18,21 @@ 15.0 + + <_PCNuGetPackage>Microsoft.PGDK + <_XboxNuGetPackage>Microsoft.GDK + + + + <_PCNuGetPackage>Microsoft.GDK.PC + <_XboxNuGetPackage>Microsoft.GDK.Xbox + + + + <_PCNuGetPackage>$(_PCNuGetPackage).$(GDKEditionNumber) + <_XboxNuGetPackage>$(_XboxNuGetPackage).$(GDKEditionNumber) + + @@ -32,11 +47,16 @@ Project="$(ExtractedFolder)SDK\Microsoft.Windows.SDK.cpp.arm64\build\native\Microsoft.Windows.SDK.cpp.arm64.props" /> - + - + + + + + $(MSBuildThisFileDirectory)build\placeholder.xvd +