1
0
mirror of https://github.com/microsoft/DirectXMath synced 2024-09-19 14:49:54 +00:00
DirectXMath/build/DirectXMath-GitHub-Dev17.yml

508 lines
15 KiB
YAML
Raw Permalink Normal View History

2022-12-05 08:00:28 +00:00
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# http://go.microsoft.com/fwlink/?LinkID=615560
# Builds the math3 test suite for DirectXMath.
schedules:
- cron: "0 0 * * *"
displayName: 'Nightly build'
branches:
include:
- main
# GitHub Actions handles MSBuild for CI/PR
trigger: none
pr:
branches:
include:
- main
paths:
include:
- build/*-GitHub-Dev17.yml
2022-12-05 08:00:28 +00:00
resources:
repositories:
- repository: self
type: git
ref: refs/heads/main
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
pool:
vmImage: windows-2022
variables:
2024-05-14 19:58:59 +00:00
Codeql.Enabled: false
2024-07-18 22:29:21 +00:00
VC_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC'
2022-12-05 08:00:28 +00:00
GITHUB_PAT: $(GITHUBPUBLICTOKEN)
jobs:
- job: BUILD_DEV17
displayName: 'Visual Studio 2022 (v143)'
cancelTimeoutInMinutes: 1
steps:
- checkout: self
clean: true
fetchTags: false
- task: DeleteFiles@1
displayName: Delete files from Tests
inputs:
SourceFolder: Tests
Contents: '**'
RemoveSourceFolder: true
RemoveDotFiles: true
- task: CmdLine@2
displayName: Fetch Tests
inputs:
2023-11-15 23:38:51 +00:00
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
2022-12-05 08:00:28 +00:00
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86dbg
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86rel
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x64dbg
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x64
configuration: Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x64rel
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x64
configuration: Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln arm64dbg
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: ARM64
configuration: Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln arm64rel
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: ARM64
configuration: Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86dbg sse3
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: SSE3 Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86rel sse3
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: SSE3 Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x64dbg sse3
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x64
configuration: SSE3 Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x64rel sse3
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x64
configuration: SSE3 Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86dbg sse4
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: SSE4 Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86rel sse4
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: SSE4 Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x64dbg sse4
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x64
configuration: SSE4 Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x64rel sse4
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x64
configuration: SSE4 Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86dbg avx
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: AVX Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86rel avx
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: AVX Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x64dbg avx
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x64
configuration: AVX Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x64rel avx
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x64
configuration: AVX Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86dbg avx2
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: AVX2 Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86rel avx2
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: AVX2 Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x64dbg avx2
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x64
configuration: AVX2 Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x64rel avx2
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x64
configuration: AVX2 Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86dbg nointrinsics
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: NI Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86rel nointrinsics
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: NI Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x64dbg nointrinsics
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x64
configuration: NI Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x64rel nointrinsics
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x64
configuration: NI Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln arm64dbg nointrinsics
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: ARM64
configuration: NI Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln arm86rel nointrinsics
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: ARM64
configuration: NI Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86dbg x87
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: x87 Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution math3_2022.sln x86rel x87
inputs:
solution: Tests/math3/math3_2022.sln
vsVersion: 17.0
platform: x86
configuration: x87 Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution shmath_2022.sln x64dbg
inputs:
solution: Tests/shmath/shmath_2022.sln
vsVersion: 17.0
platform: x64
configuration: Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution shmath_2022.sln x64rel
inputs:
solution: Tests/shmath/shmath_2022.sln
vsVersion: 17.0
platform: x64
configuration: Release
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution XDSPTest_2022 x64dbg
inputs:
solution: Tests/xdsp/XDSPTest_2022.sln
vsVersion: 17.0
platform: x64
configuration: Debug
msbuildArchitecture: x64
- task: VSBuild@1
displayName: Build solution XDSPTest_2022 x64rel
inputs:
solution: Tests/xdsp/XDSPTest_2022.sln
vsVersion: 17.0
platform: x64
configuration: Release
msbuildArchitecture: x64
2024-07-18 22:29:21 +00:00
- job: CMAKE_BUILD_X64
displayName: 'CMake for X64 BUILD_TESTING=ON'
timeoutInMinutes: 60
workspace:
clean: all
steps:
- checkout: self
clean: true
fetchTags: false
- task: DeleteFiles@1
displayName: Delete files from Tests
inputs:
SourceFolder: Tests
Contents: '**'
RemoveSourceFolder: true
RemoveDotFiles: true
- task: CmdLine@2
displayName: Fetch Tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
workingDirectory: $(Build.SourcesDirectory)
failOnStderr: true
- task: CmdLine@2
displayName: Setup environment for CMake to use VS
inputs:
script: |
call "$(VC_PATH)\Auxiliary\Build\vcvars64.bat"
echo ##vso[task.setvariable variable=WindowsSdkVerBinPath;]%WindowsSdkVerBinPath%
echo ##vso[task.prependpath]%VSINSTALLDIR%Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja
echo ##vso[task.prependpath]%VCINSTALLDIR%Tools\Llvm\x64\bin
echo ##vso[task.prependpath]%WindowsSdkBinPath%x64
echo ##vso[task.prependpath]%WindowsSdkVerBinPath%x64
echo ##vso[task.prependpath]%VCToolsInstallDir%bin\Hostx64\x64
echo ##vso[task.setvariable variable=EXTERNAL_INCLUDE;]%EXTERNAL_INCLUDE%
echo ##vso[task.setvariable variable=INCLUDE;]%INCLUDE%
echo ##vso[task.setvariable variable=LIB;]%LIB%
- task: CMake@1
displayName: CMake (MSVC; x64-Debug) Config
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --preset=x64-Debug
- task: CMake@1
displayName: CMake (MSVC; x64-Debug) Build
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --build out/build/x64-Debug -v
- task: CMake@1
displayName: CMake (MSVC; x64-Release) Config
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --preset=x64-Release
- task: CMake@1
displayName: CMake (MSVC; x64-Release) Build
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --build out/build/x64-Release -v
- task: CMake@1
displayName: CMake (clang/LLVM; x64-Debug) Config
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --preset=x64-Debug-Clang
- task: CMake@1
displayName: CMake (clang/LLVM; x64-Debug) Build
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --build out/build/x64-Debug-Clang -v
- task: CMake@1
displayName: CMake (clang/LLVM; x64-Release) Config
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --preset=x64-Release-Clang
- task: CMake@1
displayName: CMake (clang/LLVM; x64-Release) Build
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --build out/build/x64-Release-Clang -v
- job: CMAKE_BUILD_ARM64
displayName: 'CMake for ARM64 BUILD_TESTING=ON'
timeoutInMinutes: 60
workspace:
clean: all
steps:
- checkout: self
clean: true
fetchTags: false
- task: DeleteFiles@1
displayName: Delete files from Tests
inputs:
SourceFolder: Tests
Contents: '**'
RemoveSourceFolder: true
RemoveDotFiles: true
- task: CmdLine@2
displayName: Fetch Tests
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
workingDirectory: $(Build.SourcesDirectory)
failOnStderr: true
- task: CmdLine@2
displayName: Setup environment for CMake to use VS
inputs:
script: |
call "$(VC_PATH)\Auxiliary\Build\vcvarsamd64_arm64.bat"
echo ##vso[task.setvariable variable=WindowsSdkVerBinPath;]%WindowsSdkVerBinPath%
echo ##vso[task.prependpath]%VSINSTALLDIR%Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja
echo ##vso[task.prependpath]%VCINSTALLDIR%Tools\Llvm\x64\bin
echo ##vso[task.prependpath]%WindowsSdkBinPath%x64
echo ##vso[task.prependpath]%WindowsSdkVerBinPath%x64
echo ##vso[task.prependpath]%VCToolsInstallDir%bin\Hostx64\arm64
echo ##vso[task.setvariable variable=EXTERNAL_INCLUDE;]%EXTERNAL_INCLUDE%
echo ##vso[task.setvariable variable=INCLUDE;]%INCLUDE%
echo ##vso[task.setvariable variable=LIB;]%LIB%
- task: CMake@1
displayName: CMake (MSVC; arm64-Debug) Config
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --preset=arm64-Debug
- task: CMake@1
displayName: CMake (MSVC; arm64-Debug) Build
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --build out/build/arm64-Debug -v
- task: CMake@1
displayName: CMake (MSVC; arm64-Release) Config
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --preset=arm64-Release
- task: CMake@1
displayName: CMake (MSVC; arm64-Release) Build
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --build out/build/arm64-Release -v
- task: CMake@1
displayName: CMake (clang/LLVM; arm64-Debug) Config
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --preset=arm64-Debug-Clang
- task: CMake@1
displayName: CMake (clang/LLVM; arm64-Debug) Build
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --build out/build/arm64-Debug-Clang -v
- task: CMake@1
displayName: CMake (clang/LLVM; arm64-Release) Config
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --preset=arm64-Release-Clang
- task: CMake@1
displayName: CMake (clang/LLVM; arm64-Release) Build
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --build out/build/arm64-Release-Clang -v
- task: CMake@1
displayName: CMake (MSVC; arm64ec-Debug) Config
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --preset=arm64ec-Debug
- task: CMake@1
displayName: CMake (MSVC; arm64ec-Debug) Build
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --build out/build/arm64ec-Debug -v
- task: CMake@1
displayName: CMake (MSVC; arm64ec-Release) Config
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --preset=arm64ec-Release
- task: CMake@1
displayName: CMake (MSVC; arm64ec-Release) Build
inputs:
cwd: '$(Build.SourcesDirectory)'
cmakeArgs: --build out/build/arm64ec-Release -v