mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-20 08:12:27 +02:00
102 lines
2.6 KiB
YAML
102 lines
2.6 KiB
YAML
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
#
|
|
# https://go.microsoft.com/fwlink/?LinkId=248926
|
|
|
|
# Builds the library and test suite.
|
|
|
|
schedules:
|
|
- cron: "30 3 * * *"
|
|
displayName: 'Nightly build'
|
|
branches:
|
|
include:
|
|
- main
|
|
|
|
# GitHub Actions handles test suite for CI/PR
|
|
trigger: none
|
|
pr:
|
|
branches:
|
|
include:
|
|
- main
|
|
paths:
|
|
include:
|
|
- '.azuredevops/pipelines/DirectXTex-GitHub-Test.yml'
|
|
|
|
resources:
|
|
repositories:
|
|
- repository: self
|
|
type: git
|
|
ref: refs/heads/main
|
|
- repository: testRepo
|
|
name: walbourn/directxtextest
|
|
type: github
|
|
endpoint: microsoft
|
|
ref: refs/heads/main
|
|
|
|
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
|
|
|
|
pool:
|
|
vmImage: windows-2022
|
|
|
|
variables:
|
|
- group: dxtex-shared-variables
|
|
- name: Codeql.Enabled
|
|
value: false
|
|
- name: GUID_FEED
|
|
value: $(ADOFeedGUID)
|
|
|
|
jobs:
|
|
- job: DESKTOP_BUILD
|
|
displayName: 'Windows Desktop'
|
|
timeoutInMinutes: 120
|
|
cancelTimeoutInMinutes: 1
|
|
strategy:
|
|
maxParallel: 2
|
|
matrix:
|
|
Release_x64:
|
|
BuildPlatform: x64
|
|
BuildConfiguration: Release
|
|
Debug_x64:
|
|
BuildPlatform: x64
|
|
BuildConfiguration: Debug
|
|
Release_x86:
|
|
BuildPlatform: x86
|
|
BuildConfiguration: Release
|
|
Debug_x86:
|
|
BuildPlatform: x86
|
|
BuildConfiguration: Debug
|
|
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: NuGetCommand@2
|
|
displayName: NuGet restore tests
|
|
inputs:
|
|
solution: Tests/DirectXTex_Tests_Desktop_2019.sln
|
|
feedRestore: $(GUID_FEED)
|
|
includeNuGetOrg: false
|
|
- task: VSBuild@1
|
|
displayName: Build solution DirectXTex_Tests_Desktop_2019.sln
|
|
inputs:
|
|
solution: Tests/DirectXTex_Tests_Desktop_2019.sln
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
platform: '$(BuildPlatform)'
|
|
configuration: '$(BuildConfiguration)'
|
|
- task: VSBuild@1
|
|
displayName: Build solution DirectXTex_Tests_Desktop_2019_Win10.sln
|
|
inputs:
|
|
solution: Tests/DirectXTex_Tests_Desktop_2019_Win10.sln
|
|
msbuildArgs: /p:PreferredToolArchitecture=x64
|
|
platform: '$(BuildPlatform)'
|
|
configuration: '$(BuildConfiguration)'
|