зеркало из https://github.com/microsoft/DirectXTK.git
311 строки
8.8 KiB
YAML
311 строки
8.8 KiB
YAML
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
#
|
|
# https://go.microsoft.com/fwlink/?LinkId=248929
|
|
|
|
# Builds the library and test suite.
|
|
|
|
schedules:
|
|
- cron: "30 2 * * *"
|
|
displayName: 'Nightly build'
|
|
branches:
|
|
include:
|
|
- main
|
|
|
|
# GitHub Actions handles test suite for CI/PR
|
|
trigger: none
|
|
pr:
|
|
branches:
|
|
include:
|
|
- main
|
|
paths:
|
|
include:
|
|
- build/DirectXTK-GitHub-Test.yml
|
|
|
|
resources:
|
|
repositories:
|
|
- repository: self
|
|
type: git
|
|
ref: refs/heads/main
|
|
- repository: testRepo
|
|
name: walbourn/directxtktest
|
|
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'
|
|
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: VSBuild@1
|
|
displayName: Build solution DirectXTK_Tests_Desktop_2019.sln 32dbg
|
|
inputs:
|
|
solution: Tests/DirectXTK_Tests_Desktop_2019.sln
|
|
vsVersion: 16.0
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
platform: x86
|
|
configuration: Debug
|
|
- task: VSBuild@1
|
|
displayName: Build solution DirectXTK_Tests_Desktop_2019.sln 32rel
|
|
inputs:
|
|
solution: Tests/DirectXTK_Tests_Desktop_2019.sln
|
|
vsVersion: 16.0
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
platform: x86
|
|
configuration: Release
|
|
- task: VSBuild@1
|
|
displayName: Build solution DirectXTK_Tests_Desktop_2019.sln 64dbg
|
|
inputs:
|
|
solution: Tests/DirectXTK_Tests_Desktop_2019.sln
|
|
vsVersion: 16.0
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
platform: x64
|
|
configuration: Debug
|
|
- task: VSBuild@1
|
|
displayName: Build solution DirectXTK_Tests_Desktop_2019.sln 64rel
|
|
inputs:
|
|
solution: Tests/DirectXTK_Tests_Desktop_2019.sln
|
|
vsVersion: 16.0
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
platform: x64
|
|
configuration: Release
|
|
- task: CmdLine@2
|
|
displayName: 'Reclaim diskspace'
|
|
inputs:
|
|
script: del *.pch /s
|
|
workingDirectory: $(Build.SourcesDirectory)
|
|
failOnStderr: false
|
|
- 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_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
|
|
|
|
- job: DESKTOP_BUILD_WIN7
|
|
displayName: 'Win32 Desktop for Windows 7'
|
|
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
|
|
inputs:
|
|
solution: DirectXTK_Desktop_2019_Win7.sln
|
|
feedRestore: $(GUID_FEED)
|
|
includeNuGetOrg: false
|
|
- task: NuGetCommand@2
|
|
displayName: NuGet restore tests
|
|
inputs:
|
|
solution: Tests\DirectXTK_Tests_Desktop_2019_Win7.sln
|
|
feedRestore: $(GUID_FEED)
|
|
includeNuGetOrg: false
|
|
- task: VSBuild@1
|
|
displayName: Build solution DirectXTK_Tests_Desktop_2019_Win7.sln 32dbg
|
|
inputs:
|
|
solution: Tests/DirectXTK_Tests_Desktop_2019_Win7.sln
|
|
vsVersion: 16.0
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
platform: x86
|
|
configuration: Debug
|
|
- task: VSBuild@1
|
|
displayName: Build solution DirectXTK_Tests_Desktop_2019_Win7.sln 32rel
|
|
inputs:
|
|
solution: Tests/DirectXTK_Tests_Desktop_2019_Win7.sln
|
|
vsVersion: 16.0
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
platform: x86
|
|
configuration: Release
|
|
- task: VSBuild@1
|
|
displayName: Build solution DirectXTK_Tests_Desktop_2019_Win7.sln 64rel
|
|
inputs:
|
|
solution: Tests/DirectXTK_Tests_Desktop_2019_Win7.sln
|
|
vsVersion: 16.0
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
platform: x64
|
|
configuration: Release
|
|
- task: VSBuild@1
|
|
displayName: Build solution DirectXTK_Tests_Desktop_2019_Win7.sln 64dbg
|
|
inputs:
|
|
solution: Tests/DirectXTK_Tests_Desktop_2019_Win7.sln
|
|
vsVersion: 16.0
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
platform: x64
|
|
configuration: Debug
|
|
|
|
- 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: 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: 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: 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
|