DirectXTK12/build/DirectXTK12-GitHub-Test.yml

328 строки
9.3 KiB
YAML

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# https://go.microsoft.com/fwlink/?LinkID=615561
# Builds the library and test suite.
schedules:
- cron: "30 5 * * *"
displayName: 'Nightly build'
branches:
include:
- main
# GitHub Actions handles test suite for CI/PR
trigger: none
pr:
branches:
include:
- main
paths:
include:
- build/DirectXTK12-GitHub-Test.yml
resources:
repositories:
- repository: self
type: git
ref: refs/heads/main
- repository: testRepo
name: walbourn/directxtk12test
type: github
endpoint: microsoft
ref: refs/heads/main
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
pool:
vmImage: windows-2022
variables:
Codeql.Enabled: false
GUID_FEED: $(ADOFeedGUID)
jobs:
- job: DESKTOP_BUILD
displayName: 'Win32 Desktop for x64/x86'
timeoutInMinutes: 120
cancelTimeoutInMinutes: 1
workspace:
clean: all
steps:
- checkout: self
clean: true
fetchTags: false
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: NuGetToolInstaller@1
displayName: 'Use NuGet'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: NuGetCommand@2
displayName: NuGet restore tests
inputs:
solution: Tests/D3D12Test/packages.config
feedRestore: $(GUID_FEED)
includeNuGetOrg: false
packagesDirectory: ../packages
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Desktop_2019_Win10.sln 32dbg
inputs:
solution: Tests/DirectXTK_Tests_Desktop_2019_Win10.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x86
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Desktop_2019_Win10.sln 32rel
inputs:
solution: Tests/DirectXTK_Tests_Desktop_2019_Win10.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x86
configuration: Release
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Desktop_2019_Win10.sln 64dbg
inputs:
solution: Tests/DirectXTK_Tests_Desktop_2019_Win10.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x64
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Desktop_2019_Win10.sln 64rel
inputs:
solution: Tests/DirectXTK_Tests_Desktop_2019_Win10.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x64
configuration: Release
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Desktop_2019_AgilitySDK.sln 32dbg
inputs:
solution: Tests/DirectXTK_Tests_Desktop_2019_AgilitySDK.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x86
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Desktop_2019_AgilitySDK.sln 32rel
inputs:
solution: Tests/DirectXTK_Tests_Desktop_2019_AgilitySDK.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x86
configuration: Release
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Desktop_2019_AgilitySDK.sln 64dbg
inputs:
solution: Tests/DirectXTK_Tests_Desktop_2019_AgilitySDK.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x64
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Desktop_2019_AgilitySDK.sln 64rel
inputs:
solution: Tests/DirectXTK_Tests_Desktop_2019_AgilitySDK.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: x64
configuration: Release
- job: DESKTOP_BUILD_ARM64
displayName: 'Win32 Desktop for ARM64'
timeoutInMinutes: 120
steps:
- checkout: self
clean: true
fetchTags: false
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: NuGetToolInstaller@1
displayName: 'Use NuGet'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: NuGetCommand@2
displayName: NuGet restore tests
inputs:
solution: Tests/D3D12Test/packages.config
feedRestore: $(GUID_FEED)
includeNuGetOrg: false
packagesDirectory: ../packages
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Desktop_2019_Win10.sln arm64dbg
inputs:
solution: Tests/DirectXTK_Tests_Desktop_2019_Win10.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: ARM64
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Desktop_2019_Win10.sln arm64rel
inputs:
solution: Tests/DirectXTK_Tests_Desktop_2019_Win10.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: ARM64
configuration: Release
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Desktop_2019_AgilitySDK.sln arm64dbg
inputs:
solution: Tests/DirectXTK_Tests_Desktop_2019_AgilitySDK.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: ARM64
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Desktop_2019_AgilitySDK.sln arm64rel
inputs:
solution: Tests/DirectXTK_Tests_Desktop_2019_AgilitySDK.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64
platform: ARM64
configuration: Release
- job: UWP_BUILD_X64
displayName: 'Universal Windows Platform (UWP) for x64'
timeoutInMinutes: 120
cancelTimeoutInMinutes: 1
steps:
- checkout: self
clean: true
fetchTags: false
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: NuGetToolInstaller@1
displayName: 'Use NuGet'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: NuGetCommand@2
displayName: NuGet restore tests
inputs:
solution: Tests/D3D12Test/packages.config
feedRestore: $(GUID_FEED)
includeNuGetOrg: false
packagesDirectory: ../packages
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Windows10.sln 64dbg
inputs:
solution: Tests/DirectXTK_Tests_Windows10.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64 /p:AppxBundle=Never
platform: x64
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Windows10.sln 64rel
inputs:
solution: Tests/DirectXTK_Tests_Windows10.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64 /p:AppxBundle=Never
platform: x64
configuration: Release
- job: UWP_BUILD_X86
displayName: 'Universal Windows Platform (UWP) for x86'
timeoutInMinutes: 120
steps:
- checkout: self
clean: true
fetchTags: false
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: NuGetToolInstaller@1
displayName: 'Use NuGet'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: NuGetCommand@2
displayName: NuGet restore tests
inputs:
solution: Tests/D3D12Test/packages.config
feedRestore: $(GUID_FEED)
includeNuGetOrg: false
packagesDirectory: ../packages
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Windows10.sln 32dbg
inputs:
solution: Tests/DirectXTK_Tests_Windows10.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64 /p:AppxBundle=Never
platform: x86
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Windows10.sln 32rel
inputs:
solution: Tests/DirectXTK_Tests_Windows10.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64 /p:AppxBundle=Never
platform: x86
configuration: Release
- job: UWP_BUILD_ARM64
displayName: 'Universal Windows Platform (UWP) for ARM64'
timeoutInMinutes: 120
steps:
- checkout: self
clean: true
fetchTags: false
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: NuGetToolInstaller@1
displayName: 'Use NuGet'
- task: NuGetAuthenticate@1
displayName: 'NuGet Auth'
- task: NuGetCommand@2
displayName: NuGet restore tests
inputs:
solution: Tests/D3D12Test/packages.config
feedRestore: $(GUID_FEED)
includeNuGetOrg: false
packagesDirectory: ../packages
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Windows10.sln arm64dbg
inputs:
solution: Tests/DirectXTK_Tests_Windows10.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64 /p:AppxBundle=Never
platform: ARM64
configuration: Debug
- task: VSBuild@1
displayName: Build solution DirectXTK_Tests_Windows10.sln arm64rel
inputs:
solution: Tests/DirectXTK_Tests_Windows10.sln
vsVersion: 16.0
msbuildArgs: /p:PreferredToolArchitecture=x64 /p:AppxBundle=Never
platform: ARM64
configuration: Release