DirectXMesh/build/DirectXMesh-GitHub-SDK-rele...

264 строки
8.5 KiB
YAML
Исходник Постоянная ссылка Обычный вид История

2022-12-06 11:12:21 +03:00
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# https://go.microsoft.com/fwlink/?LinkID=324981
# Builds the library using the latest release of the Windows SDK from nuget.org.
schedules:
- cron: "0 6 * * 0"
displayName: 'Sunday night build'
branches:
include:
- main
always: true
trigger: none
pr: none
2022-12-06 11:12:21 +03:00
resources:
repositories:
- repository: self
type: git
ref: refs/heads/main
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
variables:
2024-05-14 22:17:38 +03:00
Codeql.Enabled: false
2022-12-06 11:12:21 +03:00
EXTRACTED_FOLDER: $(ExtractedFolder)
WSDKEnableBWOI: true
URL_FEED: $(ADOFeedURL)
2024-03-30 04:32:25 +03:00
skipNugetSecurityAnalysis: true # We explicitly call this task so we don't need it to be auto-injected
2022-12-06 11:12:21 +03:00
pool:
2024-03-28 01:16:46 +03:00
vmImage: windows-2022
2022-12-06 11:12:21 +03:00
jobs:
- job: DESKTOP_BUILD
displayName: 'Win32 Desktop'
timeoutInMinutes: 120
cancelTimeoutInMinutes: 1
steps:
- checkout: self
clean: true
fetchTags: false
- task: NuGetToolInstaller@1
displayName: 'Use NuGet'
- task: PowerShell@2
2024-03-30 04:32:25 +03:00
displayName: 'Create nuget.config with single source'
2022-12-06 11:12:21 +03:00
inputs:
targetType: inline
script: |
2024-03-30 04:32:25 +03:00
$xml = @'
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
</packageSources>
</configuration>
'@
$xml | Set-Content -Path "$(Build.SourcesDirectory)\NuGet.config"
2022-12-06 11:12:21 +03:00
2024-03-30 04:32:25 +03: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 22:36:01 +03:00
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
2022-12-06 11:12:21 +03:00
- task: NuGetCommand@2
displayName: NuGet Install WSDK x64
inputs:
command: custom
2024-09-16 21:18:37 +03:00
arguments: install Microsoft.Windows.SDK.CPP.x64 -ExcludeVersion -OutputDirectory $(EXTRACTED_FOLDER)
2022-12-06 11:12:21 +03:00
- task: NuGetCommand@2
displayName: NuGet Install WSDK x86
inputs:
command: custom
2024-09-16 21:18:37 +03:00
arguments: install Microsoft.Windows.SDK.CPP.x86 -ExcludeVersion -OutputDirectory $(EXTRACTED_FOLDER)
2022-12-06 11:12:21 +03:00
- task: NuGetCommand@2
displayName: NuGet Install WSDK arm64
inputs:
command: custom
2024-09-16 21:18:37 +03:00
arguments: install Microsoft.Windows.SDK.CPP.arm64 -ExcludeVersion -OutputDirectory $(EXTRACTED_FOLDER)
2022-12-06 11:12:21 +03:00
- task: CopyFiles@2
displayName: Set up Directory.Build.props
inputs:
SourceFolder: build
Contents: 'Directory.Build.props'
TargetFolder: $(Build.SourcesDirectory)
- task: VSBuild@1
displayName: Build solution DirectXMesh_Desktop_2019.sln 32dbg
inputs:
solution: DirectXMesh_Desktop_2019.sln
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x86
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXMesh_Desktop_2019.sln 32rel
inputs:
solution: DirectXMesh_Desktop_2019.sln
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x86
configuration: Release
- task: VSBuild@1
displayName: Build solution DirectXMesh_Desktop_2019.sln 64dbg
inputs:
solution: DirectXMesh_Desktop_2019.sln
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x64
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXMesh_Desktop_2019.sln 64rel
inputs:
solution: DirectXMesh_Desktop_2019.sln
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x64
configuration: Release
- task: VSBuild@1
displayName: Build solution DirectXMesh_Desktop_2019_Win10.sln 32dbg
inputs:
solution: DirectXMesh_Desktop_2019_Win10.sln
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x86
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXMesh_Desktop_2019_Win10.sln 32rel
inputs:
solution: DirectXMesh_Desktop_2019_Win10.sln
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x86
configuration: Release
- task: VSBuild@1
displayName: Build solution DirectXMesh_Desktop_2019_Win10.sln 64dbg
inputs:
solution: DirectXMesh_Desktop_2019_Win10.sln
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x64
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXMesh_Desktop_2019_Win10.sln 64rel
inputs:
solution: DirectXMesh_Desktop_2019_Win10.sln
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x64
configuration: Release
# VS 2019 for Win32 on ARM64 is out of support.
2022-12-06 11:12:21 +03:00
- task: VSBuild@1
displayName: Build solution DirectXMesh_Desktop_2022_Win10.sln arm64dbg
2022-12-06 11:12:21 +03:00
inputs:
solution: DirectXMesh_Desktop_2022_Win10.sln
2022-12-06 11:12:21 +03:00
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: ARM64
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXMesh_Desktop_2022_Win10.sln arm64rel
2022-12-06 11:12:21 +03:00
inputs:
solution: DirectXMesh_Desktop_2022_Win10.sln
2022-12-06 11:12:21 +03:00
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: ARM64
configuration: Release
- job: UWP_BUILD
displayName: 'Universal Windows Platform (UWP)'
timeoutInMinutes: 120
cancelTimeoutInMinutes: 1
steps:
- checkout: self
clean: true
fetchTags: false
- task: NuGetToolInstaller@1
displayName: 'Use NuGet'
- task: PowerShell@2
2024-03-30 04:32:25 +03:00
displayName: 'Create nuget.config with single source'
2022-12-06 11:12:21 +03:00
inputs:
targetType: inline
script: |
2024-03-30 04:32:25 +03:00
$xml = @'
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
</packageSources>
</configuration>
'@
$xml | Set-Content -Path "$(Build.SourcesDirectory)\NuGet.config"
2022-12-06 11:12:21 +03:00
2024-03-30 04:32:25 +03:00
- task: NuGetCommand@2
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 22:36:01 +03:00
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
2022-12-06 11:12:21 +03:00
- task: NuGetCommand@2
displayName: NuGet Install WSDK x64
inputs:
command: custom
2024-09-16 21:18:37 +03:00
arguments: install Microsoft.Windows.SDK.CPP.x64 -ExcludeVersion -OutputDirectory $(EXTRACTED_FOLDER)
2022-12-06 11:12:21 +03:00
- task: NuGetCommand@2
displayName: NuGet Install WSDK x86
inputs:
command: custom
2024-09-16 21:18:37 +03:00
arguments: install Microsoft.Windows.SDK.CPP.x86 -ExcludeVersion -OutputDirectory $(EXTRACTED_FOLDER)
2022-12-06 11:12:21 +03:00
- task: NuGetCommand@2
displayName: NuGet Install WSDK arm64
inputs:
command: custom
2024-09-16 21:18:37 +03:00
arguments: install Microsoft.Windows.SDK.CPP.arm64 -ExcludeVersion -OutputDirectory $(EXTRACTED_FOLDER)
2022-12-06 11:12:21 +03:00
- task: CopyFiles@2
displayName: Set up Directory.Build.props
inputs:
SourceFolder: build
Contents: 'Directory.Build.props'
TargetFolder: $(Build.SourcesDirectory)
- task: VSBuild@1
2024-03-28 01:16:46 +03:00
displayName: Build solution DirectXMesh_Windows10_2022.sln 32dbg
2022-12-06 11:12:21 +03:00
inputs:
2024-03-28 01:16:46 +03:00
solution: DirectXMesh_Windows10_2022.sln
2022-12-06 11:12:21 +03:00
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x86
configuration: Debug
- task: VSBuild@1
2024-03-28 01:16:46 +03:00
displayName: Build solution DirectXMesh_Windows10_2022.sln 32rel
2022-12-06 11:12:21 +03:00
inputs:
2024-03-28 01:16:46 +03:00
solution: DirectXMesh_Windows10_2022.sln
2022-12-06 11:12:21 +03:00
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x86
configuration: Release
- task: VSBuild@1
2024-03-28 01:16:46 +03:00
displayName: Build solution DirectXMesh_Windows10_2022.sln 64dbg
2022-12-06 11:12:21 +03:00
inputs:
2024-03-28 01:16:46 +03:00
solution: DirectXMesh_Windows10_2022.sln
2022-12-06 11:12:21 +03:00
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x64
configuration: Debug
- task: VSBuild@1
2024-03-28 01:16:46 +03:00
displayName: Build solution DirectXMesh_Windows10_2022.sln 64rel
2022-12-06 11:12:21 +03:00
inputs:
2024-03-28 01:16:46 +03:00
solution: DirectXMesh_Windows10_2022.sln
2022-12-06 11:12:21 +03:00
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x64
configuration: Release
2024-09-12 22:36:01 +03:00
# Windows on ARM 32-bit is deprecated. https://learn.microsoft.com/windows/arm/arm32-to-arm64
2022-12-06 11:12:21 +03:00
- task: VSBuild@1
2024-03-28 01:16:46 +03:00
displayName: Build solution DirectXMesh_Windows10_2022.sln arm64dbg
2022-12-06 11:12:21 +03:00
inputs:
2024-03-28 01:16:46 +03:00
solution: DirectXMesh_Windows10_2022.sln
2022-12-06 11:12:21 +03:00
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: ARM64
configuration: Debug
- task: VSBuild@1
2024-03-28 01:16:46 +03:00
displayName: Build solution DirectXMesh_Windows10_2022.sln arm64rel
2022-12-06 11:12:21 +03:00
inputs:
2024-03-28 01:16:46 +03:00
solution: DirectXMesh_Windows10_2022.sln
2022-12-06 11:12:21 +03:00
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: ARM64
configuration: Release