1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-21 20:10:05 +00:00

Add GitHub Action for BVTs with subset of tests (#522)

This commit is contained in:
Chuck Walbourn 2024-10-05 23:15:54 -07:00 committed by GitHub
parent cbcabd9c16
commit 8a4ff7101f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 624 additions and 431 deletions

View File

@ -3,4 +3,4 @@ updates:
- package-ecosystem: github-actions - package-ecosystem: github-actions
directory: / directory: /
schedule: schedule:
interval: daily interval: weekly

103
.github/workflows/bvt.yml vendored Normal file
View File

@ -0,0 +1,103 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# https://go.microsoft.com/fwlink/?LinkId=248926
name: 'CTest (BVTs)'
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
paths-ignore:
- '*.md'
- LICENSE
- '.nuget/*'
- build/*.cmd
- build/*.json
- build/*.props
- build/*.ps1
- build/*.targets
- build/*.yml
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [windows-2019, windows-2022]
build_type: [x64-Release]
arch: [amd64]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Clone test repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
repository: walbourn/directxtextest
path: Tests
ref: main
- name: 'Install Ninja'
run: choco install ninja
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
with:
arch: ${{ matrix.arch }}
- name: 'Set triplet'
shell: pwsh
run: |
if ("${{ matrix.arch }}" -eq "amd64")
{
echo "VCPKG_DEFAULT_TRIPLET=x64-windows" >> $env:GITHUB_ENV
}
elseif ("${{ matrix.arch }}" -eq "amd64_x86")
{
echo "VCPKG_DEFAULT_TRIPLET=x86-windows" >> $env:GITHUB_ENV
}
elseif ("${{ matrix.arch }}" -eq "amd64_arm64")
{
if ("${{ matrix.build_type }}" -match "^arm64ec")
{
echo "VCPKG_DEFAULT_TRIPLET=arm64ec-windows" >> $env:GITHUB_ENV
}
else
{
echo "VCPKG_DEFAULT_TRIPLET=arm64-windows" >> $env:GITHUB_ENV
}
}
else
{
echo "::error Unknown architecture/build-type triplet mapping"
}
- uses: lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11
with:
runVcpkgInstall: true
vcpkgJsonGlob: '**/build/vcpkg.json'
vcpkgGitCommitId: '${{ vars.VCPKG_COMMIT_ID }}'
- name: 'Configure CMake'
working-directory: ${{ github.workspace }}
run: >
cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON -DBUILD_TOOLS=OFF -DBUILD_SAMPLE=OFF -DBUILD_BVT=ON
-DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_MANIFEST_DIR="${{ github.workspace }}/build"
-DVCPKG_TARGET_TRIPLET="${env:VCPKG_DEFAULT_TRIPLET}"
- name: 'Build'
working-directory: ${{ github.workspace }}
run: cmake --build out\build\${{ matrix.build_type }}
- name: 'Run BVTs'
working-directory: ${{ github.workspace }}
run: ctest --preset=${{ matrix.build_type }} --output-on-failure

View File

@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
# #
# http://go.microsoft.com/fwlink/?LinkId=248926 # https://go.microsoft.com/fwlink/?LinkId=248926
name: 'CTest (Windows)' name: 'CTest (Windows)'
@ -125,7 +125,7 @@ jobs:
with: with:
runVcpkgInstall: true runVcpkgInstall: true
vcpkgJsonGlob: '**/build/vcpkg.json' vcpkgJsonGlob: '**/build/vcpkg.json'
vcpkgGitCommitId: '7516a02de04e8f8ff4e4beb8f5bac0565f9bf9da' vcpkgGitCommitId: '${{ vars.VCPKG_COMMIT_ID }}'
- name: 'Configure CMake' - name: 'Configure CMake'
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}

View File

@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
# #
# http://go.microsoft.com/fwlink/?LinkId=248926 # https://go.microsoft.com/fwlink/?LinkId=248926
name: 'CMake (Windows using VCPKG)' name: 'CMake (Windows using VCPKG)'
@ -81,7 +81,7 @@ jobs:
with: with:
runVcpkgInstall: true runVcpkgInstall: true
vcpkgJsonGlob: '**/build/vcpkg.json' vcpkgJsonGlob: '**/build/vcpkg.json'
vcpkgGitCommitId: '7516a02de04e8f8ff4e4beb8f5bac0565f9bf9da' vcpkgGitCommitId: '${{ vars.VCPKG_COMMIT_ID }}'
- name: 'Configure CMake' - name: 'Configure CMake'
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}

View File

@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
# #
# http://go.microsoft.com/fwlink/?LinkId=248926 # https://go.microsoft.com/fwlink/?LinkId=248926
name: 'CMake (WSL)' name: 'CMake (WSL)'
@ -41,7 +41,7 @@ jobs:
with: with:
runVcpkgInstall: true runVcpkgInstall: true
vcpkgJsonGlob: '**/build/vcpkg.json' vcpkgJsonGlob: '**/build/vcpkg.json'
vcpkgGitCommitId: '7516a02de04e8f8ff4e4beb8f5bac0565f9bf9da' vcpkgGitCommitId: '${{ vars.VCPKG_COMMIT_ID }}'
- name: 'Configure CMake' - name: 'Configure CMake'
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}

View File

@ -605,15 +605,18 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
target_compile_options(${t} PRIVATE ${WarningsEXE}) target_compile_options(${t} PRIVATE ${WarningsEXE})
endforeach() endforeach()
if(BUILD_FUZZING if(BUILD_FUZZING AND (NOT WINDOWS_STORE))
AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.32) string(REPLACE "/DNDEBUG" "" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
AND (NOT WINDOWS_STORE)) string(REPLACE "/DNDEBUG" "" CMAKE_CXX_FLAGS_RELWITHDEBINFO ${CMAKE_CXX_FLAGS_RELWITHDEBINFO})
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.32)
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME}) foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
target_compile_options(${t} PRIVATE ${ASAN_SWITCHES}) target_compile_options(${t} PRIVATE ${ASAN_SWITCHES})
target_link_libraries(${t} PRIVATE ${ASAN_LIBS}) target_link_libraries(${t} PRIVATE ${ASAN_LIBS})
endforeach() endforeach()
endif() endif()
endif() endif()
endif()
if(WIN32) if(WIN32)
if(XBOX_CONSOLE_TARGET STREQUAL "durango") if(XBOX_CONSOLE_TARGET STREQUAL "durango")

View File

@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
# #
# http://go.microsoft.com/fwlink/?LinkId=248926 # https://go.microsoft.com/fwlink/?LinkId=248926
# Builds the library using CMake with VS Generator (GitHub Actions covers Ninja). # Builds the library using CMake with VS Generator (GitHub Actions covers Ninja).
@ -23,7 +23,7 @@ trigger:
- '.github/*' - '.github/*'
- '.nuget/*' - '.nuget/*'
- build/*.cmd - build/*.cmd
- build/*.json - build/OneFuzz*.json
- build/*.props - build/*.props
- build/*.ps1 - build/*.ps1
- build/*.targets - build/*.targets
@ -39,7 +39,7 @@ pr:
- '.github/*' - '.github/*'
- '.nuget/*' - '.nuget/*'
- build/*.cmd - build/*.cmd
- build/*.json - build/OneFuzz*.json
- build/*.props - build/*.props
- build/*.ps1 - build/*.ps1
- build/*.targets - build/*.targets
@ -50,13 +50,19 @@ resources:
- repository: self - repository: self
type: git type: git
ref: refs/heads/main ref: refs/heads/main
- repository: vcpkgRepo
name: Microsoft/vcpkg
type: github
endpoint: microsoft
ref: refs/tags/$(VCPKG_TAG)
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
variables: variables:
Codeql.Enabled: false Codeql.Enabled: false
VCPKG_CMAKE_DIR: '$(VCPKG_ROOT)/scripts/buildsystems/vcpkg.cmake' VCPKG_ROOT: $(Build.SourcesDirectory)/vcpkg
GITHUB_PAT: $(GITHUBPUBLICTOKEN) VCPKG_CMAKE_DIR: $(Build.SourcesDirectory)/vcpkg/scripts/buildsystems/vcpkg.cmake
VCPKG_MANIFEST_DIR: $(Build.SourcesDirectory)/build
VS_GENERATOR: 'Visual Studio 17 2022' VS_GENERATOR: 'Visual Studio 17 2022'
WIN10_SDK: '10.0.19041.0' WIN10_SDK: '10.0.19041.0'
WIN11_SDK: '10.0.22000.0' WIN11_SDK: '10.0.22000.0'
@ -74,142 +80,142 @@ jobs:
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config x64' displayName: 'CMake (MSVC): Config x64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug' displayName: 'CMake (MSVC): Build x64 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out -v --config Debug cmakeArgs: --build out -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x64 Release' displayName: 'CMake (MSVC): Build x64 Release'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out -v --config RelWithDebInfo cmakeArgs: --build out -v --config RelWithDebInfo
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config x86' displayName: 'CMake (MSVC): Config x86'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A Win32 -B out2 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF' cmakeArgs: -G "$(VS_GENERATOR)" -A Win32 -B out2 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x86 Debug' displayName: 'CMake (MSVC): Build x86 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out2 -v --config Debug cmakeArgs: --build out2 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x86 Release' displayName: 'CMake (MSVC): Build x86 Release'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out2 -v --config RelWithDebInfo cmakeArgs: --build out2 -v --config RelWithDebInfo
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config ARM64' displayName: 'CMake (MSVC): Config ARM64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -B out3 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF' cmakeArgs: -G "$(VS_GENERATOR)" -A ARM64 -B out3 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build ARM64 Debug' displayName: 'CMake (MSVC): Build ARM64 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out3 -v --config Debug cmakeArgs: --build out3 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build ARM64 Release' displayName: 'CMake (MSVC): Build ARM64 Release'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out3 -v --config RelWithDebInfo cmakeArgs: --build out3 -v --config RelWithDebInfo
- task: CMake@1 - task: CMake@1
displayName: 'CMake (UWP): Config x64' displayName: 'CMake (UWP): Config x64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out4 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=10.0' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -B out4 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=10.0
- task: CMake@1 - task: CMake@1
displayName: 'CMake (UWP): Build x64' displayName: 'CMake (UWP): Build x64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out4 -v cmakeArgs: --build out4 -v
- task: CMake@1 - task: CMake@1
displayName: 'CMake (ClangCl): Config x64' displayName: 'CMake (ClangCl): Config x64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -T clangcl -B out6 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -T clangcl -B out6 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
- task: CMake@1 - task: CMake@1
displayName: 'CMake (ClangCl): Build x64 Debug' displayName: 'CMake (ClangCl): Build x64 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out6 -v --config Debug cmakeArgs: --build out6 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (ClangCl): Build x64 Release' displayName: 'CMake (ClangCl): Build x64 Release'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out6 -v --config RelWithDebInfo cmakeArgs: --build out6 -v --config RelWithDebInfo
- task: CMake@1 - task: CMake@1
displayName: 'CMake (ClangCl): Config ARM64' displayName: 'CMake (ClangCl): Config ARM64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -T clangcl -B out7 -DCMAKE_SYSTEM_VERSION=$(WIN11_SDK)' cmakeArgs: -G "$(VS_GENERATOR)" -A ARM64 -T clangcl -B out7 -DCMAKE_SYSTEM_VERSION=$(WIN11_SDK)
- task: CMake@1 - task: CMake@1
displayName: 'CMake (ClangCl): Build ARM64' displayName: 'CMake (ClangCl): Build ARM64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out7 -v --config Debug cmakeArgs: --build out7 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (Win10): Config' displayName: 'CMake (Win10): Config'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out8 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=ON' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -B out8 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=ON
- task: CMake@1 - task: CMake@1
displayName: 'CMake (Win10): Build' displayName: 'CMake (Win10): Build'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out8 -v --config Debug cmakeArgs: --build out8 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC Spectre): Config x64' displayName: 'CMake (MSVC Spectre): Config x64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out9 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -B out9 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC Spectre): Build x64 Debug' displayName: 'CMake (MSVC Spectre): Build x64 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out9 -v --config Debug cmakeArgs: --build out9 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC Spectre): Build x64 Release' displayName: 'CMake (MSVC Spectre): Build x64 Release'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out9 -v --config RelWithDebInfo cmakeArgs: --build out9 -v --config RelWithDebInfo
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC Spectre): Config ARM64' displayName: 'CMake (MSVC Spectre): Config ARM64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -B out10 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF' cmakeArgs: -G "$(VS_GENERATOR)" -A ARM64 -B out10 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC Spectre): Build ARM64 Debug' displayName: 'CMake (MSVC Spectre): Build ARM64 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out10 -v --config Debug cmakeArgs: --build out10 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC Spectre): Build ARM64 Release' displayName: 'CMake (MSVC Spectre): Build ARM64 Release'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out10 -v --config RelWithDebInfo cmakeArgs: --build out10 -v --config RelWithDebInfo
- task: CMake@1 - task: CMake@1
displayName: 'CMake (Win10 Spectre): Config' displayName: 'CMake (Win10 Spectre): Config'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out11 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=ON' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -B out11 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=ON
- task: CMake@1 - task: CMake@1
displayName: 'CMake (Win10 Spectre): Build' displayName: 'CMake (Win10 Spectre): Build'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out11 -v --config Debug cmakeArgs: --build out11 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (NO_WCHAR_T): Config' displayName: 'CMake (NO_WCHAR_T): Config'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out12 -DNO_WCHAR_T=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN11_SDK) -DBUILD_DX12=ON' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -B out12 -DNO_WCHAR_T=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN11_SDK) -DBUILD_DX12=ON
- task: CMake@1 - task: CMake@1
displayName: 'CMake (NO_WCHAR_T): Build' displayName: 'CMake (NO_WCHAR_T): Build'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out12 -v --config Debug cmakeArgs: --build out12 -v --config Debug
- job: CMAKE_BUILD_VCPKG - job: CMAKE_BUILD_VCPKG
@ -218,77 +224,69 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: CmdLine@2 fetchDepth: 1
# We can use the preinstalled vcpkg instead of the latest when MS Hosted updates their vcpkg to the newer DirectX-Headers path: 's'
- checkout: vcpkgRepo
displayName: Fetch VCPKG displayName: Fetch VCPKG
inputs: clean: true
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/vcpkg.git fetchTags: false
workingDirectory: $(Build.SourcesDirectory) fetchDepth: 1
path: 's/vcpkg'
- task: CmdLine@2 - task: CmdLine@2
displayName: VCPKG Bootstrap displayName: VCPKG Bootstrap
inputs: inputs:
script: call bootstrap-vcpkg.bat script: call bootstrap-vcpkg.bat
workingDirectory: $(Build.SourcesDirectory)\vcpkg workingDirectory: $(VCPKG_ROOT)
- task: CmdLine@2 - task: CmdLine@2
displayName: VCPKG install headers displayName: VCPKG install packages
inputs: inputs:
script: | script: call vcpkg install --x-manifest-root=$(VCPKG_MANIFEST_DIR) --triplet=x64-windows
call vcpkg install directxmath workingDirectory: $(VCPKG_ROOT)
@if ERRORLEVEL 1 goto error
call vcpkg install directx-headers
@if ERRORLEVEL 1 goto error
call vcpkg install openexr
@if ERRORLEVEL 1 goto error
call vcpkg install libpng
@if ERRORLEVEL 1 goto error
call vcpkg install libjpeg-turbo
@if ERRORLEVEL 1 goto error
:finish
@echo --- VCPKG COMPLETE ---
exit /b 0
:error
@echo --- ERROR: VCPKG FAILED ---
exit /b 1
workingDirectory: $(Build.SourcesDirectory)\vcpkg
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config x64' displayName: 'CMake (MSVC): Config x64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)' cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-windows
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug' displayName: 'CMake (MSVC): Build x64 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out -v --config Debug cmakeArgs: --build out -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config x64 w/ OpenEXR' displayName: 'CMake (MSVC): Config x64 w/ OpenEXR'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out2 -DENABLE_OPENEXR_SUPPORT=ON -DBUILD_TESTING=OFF -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)' cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out2 -DENABLE_OPENEXR_SUPPORT=ON -DBUILD_TESTING=OFF -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-windows
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug w/ OpenEXR' displayName: 'CMake (MSVC): Build x64 Debug w/ OpenEXR'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out2 -v --config Debug cmakeArgs: --build out2 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config x64 w/ libjpeg' displayName: 'CMake (MSVC): Config x64 w/ libjpeg'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out3 -DENABLE_LIBJPEG_SUPPORT=ON -DBUILD_TESTING=OFF -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)' cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out3 -DENABLE_LIBJPEG_SUPPORT=ON -DBUILD_TESTING=OFF -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-windows
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug w/ libjpeg' displayName: 'CMake (MSVC): Build x64 Debug w/ libjpeg'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out3 -v --config Debug cmakeArgs: --build out3 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config x64 w/ libpng' displayName: 'CMake (MSVC): Config x64 w/ libpng'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out4 -DENABLE_LIBPNG_SUPPORT=ON -DBUILD_TESTING=OFF -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)' cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out4 -DENABLE_LIBPNG_SUPPORT=ON -DBUILD_TESTING=OFF -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-windows
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug w/ libpng' displayName: 'CMake (MSVC): Build x64 Debug w/ libpng'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out4 -v --config Debug cmakeArgs: --build out4 -v --config Debug

View File

@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
# #
# http://go.microsoft.com/fwlink/?LinkId=248926 # https://go.microsoft.com/fwlink/?LinkId=248926
# Builds the library using CMake with VS Generator (GitHub Actions covers Ninja). # Builds the library using CMake with VS Generator (GitHub Actions covers Ninja).
@ -23,7 +23,7 @@ trigger:
- '.github/*' - '.github/*'
- '.nuget/*' - '.nuget/*'
- build/*.cmd - build/*.cmd
- build/*.json - build/OneFuzz*.json
- build/*.props - build/*.props
- build/*.ps1 - build/*.ps1
- build/*.targets - build/*.targets
@ -39,7 +39,7 @@ pr:
- '.github/*' - '.github/*'
- '.nuget/*' - '.nuget/*'
- build/*.cmd - build/*.cmd
- build/*.json - build/OneFuzz*.json
- build/*.props - build/*.props
- build/*.ps1 - build/*.ps1
- build/*.targets - build/*.targets
@ -50,13 +50,19 @@ resources:
- repository: self - repository: self
type: git type: git
ref: refs/heads/main ref: refs/heads/main
- repository: vcpkgRepo
name: Microsoft/vcpkg
type: github
endpoint: microsoft
ref: refs/tags/$(VCPKG_TAG)
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
variables: variables:
Codeql.Enabled: false Codeql.Enabled: false
VCPKG_CMAKE_DIR: '$(VCPKG_ROOT)/scripts/buildsystems/vcpkg.cmake' VCPKG_ROOT: $(Build.SourcesDirectory)/vcpkg
GITHUB_PAT: $(GITHUBPUBLICTOKEN) VCPKG_CMAKE_DIR: $(Build.SourcesDirectory)/vcpkg/scripts/buildsystems/vcpkg.cmake
VCPKG_MANIFEST_DIR: $(Build.SourcesDirectory)/build
VS_GENERATOR: 'Visual Studio 16 2019' VS_GENERATOR: 'Visual Studio 16 2019'
WIN10_SDK: '10.0.19041.0' WIN10_SDK: '10.0.19041.0'
WIN11_SDK: '10.0.22000.0' WIN11_SDK: '10.0.22000.0'
@ -74,142 +80,142 @@ jobs:
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config x64' displayName: 'CMake (MSVC): Config x64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug' displayName: 'CMake (MSVC): Build x64 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out -v --config Debug cmakeArgs: --build out -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x64 Release' displayName: 'CMake (MSVC): Build x64 Release'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out -v --config RelWithDebInfo cmakeArgs: --build out -v --config RelWithDebInfo
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config x86' displayName: 'CMake (MSVC): Config x86'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A Win32 -B out2 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF' cmakeArgs: -G "$(VS_GENERATOR)" -A Win32 -B out2 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x86 Debug' displayName: 'CMake (MSVC): Build x86 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out2 -v --config Debug cmakeArgs: --build out2 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x86 Release' displayName: 'CMake (MSVC): Build x86 Release'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out2 -v --config RelWithDebInfo cmakeArgs: --build out2 -v --config RelWithDebInfo
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config ARM64' displayName: 'CMake (MSVC): Config ARM64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -B out3 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF' cmakeArgs: -G "$(VS_GENERATOR)" -A ARM64 -B out3 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build ARM64 Debug' displayName: 'CMake (MSVC): Build ARM64 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out3 -v --config Debug cmakeArgs: --build out3 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build ARM64 Release' displayName: 'CMake (MSVC): Build ARM64 Release'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out3 -v --config RelWithDebInfo cmakeArgs: --build out3 -v --config RelWithDebInfo
- task: CMake@1 - task: CMake@1
displayName: 'CMake (UWP): Config x64' displayName: 'CMake (UWP): Config x64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out4 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=10.0' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -B out4 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=10.0
- task: CMake@1 - task: CMake@1
displayName: 'CMake (UWP): Build x64' displayName: 'CMake (UWP): Build x64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out4 -v cmakeArgs: --build out4 -v
- task: CMake@1 - task: CMake@1
displayName: 'CMake (ClangCl): Config x64' displayName: 'CMake (ClangCl): Config x64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -T clangcl -B out6 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -T clangcl -B out6 -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
- task: CMake@1 - task: CMake@1
displayName: 'CMake (ClangCl): Build x64 Debug' displayName: 'CMake (ClangCl): Build x64 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out6 -v --config Debug cmakeArgs: --build out6 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (ClangCl): Build x64 Release' displayName: 'CMake (ClangCl): Build x64 Release'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out6 -v --config RelWithDebInfo cmakeArgs: --build out6 -v --config RelWithDebInfo
- task: CMake@1 - task: CMake@1
displayName: 'CMake (ClangCl): Config ARM64' displayName: 'CMake (ClangCl): Config ARM64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -T clangcl -B out7 -DCMAKE_SYSTEM_VERSION=$(WIN11_SDK)' cmakeArgs: -G "$(VS_GENERATOR)" -A ARM64 -T clangcl -B out7 -DCMAKE_SYSTEM_VERSION=$(WIN11_SDK)
- task: CMake@1 - task: CMake@1
displayName: 'CMake (ClangCl): Build ARM64' displayName: 'CMake (ClangCl): Build ARM64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out7 -v --config Debug cmakeArgs: --build out7 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (Win10): Config' displayName: 'CMake (Win10): Config'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out8 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=ON' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -B out8 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=ON
- task: CMake@1 - task: CMake@1
displayName: 'CMake (Win10): Build' displayName: 'CMake (Win10): Build'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out8 -v --config Debug cmakeArgs: --build out8 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC Spectre): Config x64' displayName: 'CMake (MSVC Spectre): Config x64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out9 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -B out9 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC Spectre): Build x64 Debug' displayName: 'CMake (MSVC Spectre): Build x64 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out9 -v --config Debug cmakeArgs: --build out9 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC Spectre): Build x64 Release' displayName: 'CMake (MSVC Spectre): Build x64 Release'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out9 -v --config RelWithDebInfo cmakeArgs: --build out9 -v --config RelWithDebInfo
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC Spectre): Config ARM64' displayName: 'CMake (MSVC Spectre): Config ARM64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A ARM64 -B out10 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF' cmakeArgs: -G "$(VS_GENERATOR)" -A ARM64 -B out10 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=OFF
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC Spectre): Build ARM64 Debug' displayName: 'CMake (MSVC Spectre): Build ARM64 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out10 -v --config Debug cmakeArgs: --build out10 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC Spectre): Build ARM64 Release' displayName: 'CMake (MSVC Spectre): Build ARM64 Release'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out10 -v --config RelWithDebInfo cmakeArgs: --build out10 -v --config RelWithDebInfo
- task: CMake@1 - task: CMake@1
displayName: 'CMake (Win10 Spectre): Config' displayName: 'CMake (Win10 Spectre): Config'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out11 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=ON' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -B out11 -DENABLE_SPECTRE_MITIGATION=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK) -DBUILD_DX12=ON
- task: CMake@1 - task: CMake@1
displayName: 'CMake (Win10 Spectre): Build' displayName: 'CMake (Win10 Spectre): Build'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out11 -v --config Debug cmakeArgs: --build out11 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (NO_WCHAR_T): Config' displayName: 'CMake (NO_WCHAR_T): Config'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out12 -DNO_WCHAR_T=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN11_SDK) -DBUILD_DX12=ON' cmakeArgs: -G "$(VS_GENERATOR)" -A x64 -B out12 -DNO_WCHAR_T=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_SYSTEM_VERSION=$(WIN11_SDK) -DBUILD_DX12=ON
- task: CMake@1 - task: CMake@1
displayName: 'CMake (NO_WCHAR_T): Build' displayName: 'CMake (NO_WCHAR_T): Build'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out12 -v --config Debug cmakeArgs: --build out12 -v --config Debug
- job: CMAKE_BUILD_VCPKG - job: CMAKE_BUILD_VCPKG
@ -218,77 +224,69 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: CmdLine@2 fetchDepth: 1
# We can use the preinstalled vcpkg instead of the latest when MS Hosted updates their vcpkg to the newer DirectX-Headers path: 's'
- checkout: vcpkgRepo
displayName: Fetch VCPKG displayName: Fetch VCPKG
inputs: clean: true
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/vcpkg.git fetchTags: false
workingDirectory: $(Build.SourcesDirectory) fetchDepth: 1
path: 's/vcpkg'
- task: CmdLine@2 - task: CmdLine@2
displayName: VCPKG Bootstrap displayName: VCPKG Bootstrap
inputs: inputs:
script: call bootstrap-vcpkg.bat script: call bootstrap-vcpkg.bat
workingDirectory: $(Build.SourcesDirectory)\vcpkg workingDirectory: $(VCPKG_ROOT)
- task: CmdLine@2 - task: CmdLine@2
displayName: VCPKG install headers displayName: VCPKG install packages
inputs: inputs:
script: | script: call vcpkg install --x-manifest-root=$(VCPKG_MANIFEST_DIR) --triplet=x64-windows
call vcpkg install directxmath workingDirectory: $(VCPKG_ROOT)
@if ERRORLEVEL 1 goto error
call vcpkg install directx-headers
@if ERRORLEVEL 1 goto error
call vcpkg install openexr
@if ERRORLEVEL 1 goto error
call vcpkg install libpng
@if ERRORLEVEL 1 goto error
call vcpkg install libjpeg-turbo
@if ERRORLEVEL 1 goto error
:finish
@echo --- VCPKG COMPLETE ---
exit /b 0
:error
@echo --- ERROR: VCPKG FAILED ---
exit /b 1
workingDirectory: $(Build.SourcesDirectory)\vcpkg
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config x64' displayName: 'CMake (MSVC): Config x64'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)' cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-windows
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug' displayName: 'CMake (MSVC): Build x64 Debug'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out -v --config Debug cmakeArgs: --build out -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config x64 w/ OpenEXR' displayName: 'CMake (MSVC): Config x64 w/ OpenEXR'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out2 -DENABLE_OPENEXR_SUPPORT=ON -DBUILD_TESTING=OFF -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)' cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out2 -DENABLE_OPENEXR_SUPPORT=ON -DBUILD_TESTING=OFF -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-windows
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug w/ OpenEXR' displayName: 'CMake (MSVC): Build x64 Debug w/ OpenEXR'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out2 -v --config Debug cmakeArgs: --build out2 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config x64 w/ libjpeg' displayName: 'CMake (MSVC): Config x64 w/ libjpeg'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out3 -DENABLE_LIBJPEG_SUPPORT=ON -DBUILD_TESTING=OFF -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)' cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out3 -DENABLE_LIBJPEG_SUPPORT=ON -DBUILD_TESTING=OFF -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-windows
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug w/ libjpeg' displayName: 'CMake (MSVC): Build x64 Debug w/ libjpeg'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out3 -v --config Debug cmakeArgs: --build out3 -v --config Debug
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config x64 w/ libpng' displayName: 'CMake (MSVC): Config x64 w/ libpng'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out4 -DENABLE_LIBPNG_SUPPORT=ON -DBUILD_TESTING=OFF -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)' cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out4 -DENABLE_LIBPNG_SUPPORT=ON -DBUILD_TESTING=OFF -DCMAKE_SYSTEM_VERSION=$(WIN10_SDK)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-windows
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Build x64 Debug w/ libpng' displayName: 'CMake (MSVC): Build x64 Debug w/ libpng'
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out4 -v --config Debug cmakeArgs: --build out4 -v --config Debug

View File

@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
# #
# http://go.microsoft.com/fwlink/?LinkId=248926 # https://go.microsoft.com/fwlink/?LinkId=248926
# Builds the library and test suite using the MinGW compiler. # Builds the library and test suite using the MinGW compiler.
@ -23,7 +23,7 @@ trigger:
- '.github/*' - '.github/*'
- '.nuget/*' - '.nuget/*'
- build/*.cmd - build/*.cmd
- build/*.json - build/OneFuzz*.json
- build/*.props - build/*.props
- build/*.ps1 - build/*.ps1
- build/*.targets - build/*.targets
@ -39,7 +39,7 @@ pr:
- '.github/*' - '.github/*'
- '.nuget/*' - '.nuget/*'
- build/*.cmd - build/*.cmd
- build/*.json - build/OneFuzz*.json
- build/*.props - build/*.props
- build/*.ps1 - build/*.ps1
- build/*.targets - build/*.targets
@ -50,6 +50,16 @@ resources:
- repository: self - repository: self
type: git type: git
ref: refs/heads/main ref: refs/heads/main
- repository: vcpkgRepo
name: Microsoft/vcpkg
type: github
endpoint: microsoft
ref: refs/tags/$(VCPKG_TAG)
- repository: testRepo
name: walbourn/directxtextest
type: github
endpoint: microsoft
ref: refs/heads/main
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
@ -58,8 +68,9 @@ pool:
variables: variables:
Codeql.Enabled: false Codeql.Enabled: false
VCPKG_CMAKE_DIR: '$(VCPKG_ROOT)/scripts/buildsystems/vcpkg.cmake' VCPKG_ROOT: $(Build.SourcesDirectory)/vcpkg
GITHUB_PAT: $(GITHUBPUBLICTOKEN) VCPKG_CMAKE_DIR: $(Build.SourcesDirectory)/vcpkg/scripts/buildsystems/vcpkg.cmake
VCPKG_MANIFEST_DIR: $(Build.SourcesDirectory)/build
WIN11_SDK: '10.0.22000.0' WIN11_SDK: '10.0.22000.0'
URL_MINGW32: https://github.com/brechtsanders/winlibs_mingw/releases/download/12.2.0-14.0.6-10.0.0-ucrt-r2/winlibs-i686-posix-dwarf-gcc-12.2.0-llvm-14.0.6-mingw-w64ucrt-10.0.0-r2.zip URL_MINGW32: https://github.com/brechtsanders/winlibs_mingw/releases/download/12.2.0-14.0.6-10.0.0-ucrt-r2/winlibs-i686-posix-dwarf-gcc-12.2.0-llvm-14.0.6-mingw-w64ucrt-10.0.0-r2.zip
HASH_MINGW32: 'fcd1e11b896190da01c83d5b5fb0d37b7c61585e53446c2dab0009debc3915e757213882c35e35396329338de6f0222ba012e23a5af86932db45186a225d1272' HASH_MINGW32: 'fcd1e11b896190da01c83d5b5fb0d37b7c61585e53446c2dab0009debc3915e757213882c35e35396329338de6f0222ba012e23a5af86932db45186a225d1272'
@ -72,12 +83,14 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: CmdLine@2 fetchDepth: 1
# We can use the preinstalled vcpkg instead of the latest when MS Hosted updates their vcpkg to the newer DirectX-Headers path: 's'
- checkout: vcpkgRepo
displayName: Fetch VCPKG displayName: Fetch VCPKG
inputs: clean: true
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/vcpkg.git fetchTags: false
workingDirectory: $(Build.SourcesDirectory) fetchDepth: 1
path: 's/vcpkg'
- task: CmdLine@2 - task: CmdLine@2
displayName: VCPKG Bootstrap displayName: VCPKG Bootstrap
inputs: inputs:
@ -108,15 +121,23 @@ jobs:
Write-Host "Added to path: $env:BUILD_SOURCESDIRECTORY\gw32\mingw32\bin" Write-Host "Added to path: $env:BUILD_SOURCESDIRECTORY\gw32\mingw32\bin"
Write-Host "##vso[task.prependpath]$env:BUILD_SOURCESDIRECTORY\gw32\mingw32\bin" Write-Host "##vso[task.prependpath]$env:BUILD_SOURCESDIRECTORY\gw32\mingw32\bin"
$sdkroot = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots' | Select-Object -ExpandProperty KitsRoot10 $sdkroot = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots' | Select-Object -ExpandProperty KitsRoot10
$windows11sdk = "{0}bin\$(WIN11_SDK)\" -f $sdkroot $wsdkbin = "{0}bin\" -f $sdkroot
if (Test-Path "$windows11sdk") { $wsdkverbin = "{0}bin\$(WIN11_SDK)\" -f $sdkroot
Write-Host "##vso[task.setvariable variable=WindowsSdkVerBinPath;]$windows11sdk" $wsdkarchbin = "{0}bin\$(WIN11_SDK)\x86" -f $sdkroot
if (Test-Path "$wsdkarchbin") {
Write-Host "##vso[task.setvariable variable=WindowsSdkBinPath;]$wsdkbin"
Write-Host "##vso[task.setvariable variable=WindowsSdkVerBinPath;]$wsdkverbin"
Write-Host "##vso[task.prependpath]$wsdkarchbin"
} }
else { else {
Write-Error -Message "##[error]Can't find Windows SDK ($(WIN11_SDK))" -ErrorAction Stop Write-Error -Message "##[error]Can't find Windows SDK ($(WIN11_SDK))" -ErrorAction Stop
} }
workingDirectory: $(Build.SourcesDirectory) workingDirectory: $(Build.SourcesDirectory)
- task: CmdLine@2
displayName: GCC version
inputs:
script: g++ --version
- task: BatchScript@1 - task: BatchScript@1
displayName: CompileShaders displayName: CompileShaders
inputs: inputs:
@ -128,70 +149,65 @@ jobs:
filename: DDSView/hlsl.cmd filename: DDSView/hlsl.cmd
workingFolder: $(Build.SourcesDirectory)\DDSView workingFolder: $(Build.SourcesDirectory)\DDSView
- task: CmdLine@2 - task: CmdLine@2
displayName: GCC version displayName: VCPKG install packages
inputs: inputs:
script: g++ --version script: call vcpkg install --x-manifest-root=$(VCPKG_MANIFEST_DIR) --triplet=x86-mingw-static
- task: CmdLine@2 workingDirectory: $(VCPKG_ROOT)
displayName: VCPKG install headers
inputs:
script: |
call .\vcpkg install directxmath
@if ERRORLEVEL 1 goto error
call .\vcpkg install directx-headers
@if ERRORLEVEL 1 goto error
call .\vcpkg install openexr
@if ERRORLEVEL 1 goto error
call .\vcpkg install libpng
@if ERRORLEVEL 1 goto error
call .\vcpkg install libjpeg-turbo
@if ERRORLEVEL 1 goto error
:finish
@echo --- VCPKG COMPLETE ---
exit /b 0
:error
@echo --- ERROR: VCPKG FAILED ---
exit /b 1
workingDirectory: $(Build.SourcesDirectory)\vcpkg
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW32) displayName: CMake (MinGW32)
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out -DCMAKE_BUILD_TYPE="Debug" -DDIRECTX_ARCH=x86 -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x86-mingw-static -DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(Build.BinariesDirectory)\Shaders cmakeArgs: >
-B out -DCMAKE_BUILD_TYPE="Debug" -DDIRECTX_ARCH=x86
-DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles"
-DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(CompileShadersOutput)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x86-mingw-static
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW32) Build displayName: CMake (MinGW32) Build
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out cmakeArgs: --build out
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW32) w/ OpenEXR displayName: CMake (MinGW32) w/ OpenEXR
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out2 -DCMAKE_BUILD_TYPE="Debug" -DENABLE_OPENEXR_SUPPORT=ON -DBUILD_TESTING=OFF -DDIRECTX_ARCH=x86 -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x86-mingw-static -DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(Build.BinariesDirectory)\Shaders cmakeArgs: >
-B out2 -DCMAKE_BUILD_TYPE="Debug" -DENABLE_OPENEXR_SUPPORT=ON -DDIRECTX_ARCH=x86
-DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles"
-DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(CompileShadersOutput)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x86-mingw-static
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW32) Build w/ OpenEXR displayName: CMake (MinGW32) Build w/ OpenEXR
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out2 cmakeArgs: --build out2
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW32) w/ libjpeg displayName: CMake (MinGW32) w/ libjpeg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out3 -DCMAKE_BUILD_TYPE="Debug" -DENABLE_LIBJPEG_SUPPORT=ON -DBUILD_TESTING=OFF -DDIRECTX_ARCH=x86 -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x86-mingw-static -DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(Build.BinariesDirectory)\Shaders cmakeArgs: >
-B out3 -DCMAKE_BUILD_TYPE="Debug" -DENABLE_LIBJPEG_SUPPORT=ON -DDIRECTX_ARCH=x86
-DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles"
-DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(CompileShadersOutput)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x86-mingw-static
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW32) Build w/ libjpeg displayName: CMake (MinGW32) Build w/ libjpeg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out3 cmakeArgs: --build out3
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW32) w/ libpng displayName: CMake (MinGW32) w/ libpng
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out4 -DCMAKE_BUILD_TYPE="Debug" -DENABLE_LIBPNG_SUPPORT=ON -DBUILD_TESTING=OFF -DDIRECTX_ARCH=x86 -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x86-mingw-static -DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(Build.BinariesDirectory)\Shaders cmakeArgs: >
-B out4 -DCMAKE_BUILD_TYPE="Debug" -DENABLE_LIBPNG_SUPPORT=ON -DDIRECTX_ARCH=x86
-DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles"
-DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(CompileShadersOutput)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x86-mingw-static
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW32) Build w/ libpng displayName: CMake (MinGW32) Build w/ libpng
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out4 cmakeArgs: --build out4
- job: MINGW64_BUILD - job: MINGW64_BUILD
@ -200,15 +216,20 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: CmdLine@2 fetchDepth: 1
path: 's'
- checkout: vcpkgRepo
displayName: Fetch VCPKG displayName: Fetch VCPKG
inputs: clean: true
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/vcpkg.git fetchTags: false
workingDirectory: $(Build.SourcesDirectory) fetchDepth: 1
- task: CmdLine@2 path: 's/vcpkg'
- checkout: testRepo
displayName: Fetch Tests displayName: Fetch Tests
inputs: clean: true
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: CmdLine@2 - task: CmdLine@2
displayName: VCPKG Bootstrap displayName: VCPKG Bootstrap
inputs: inputs:
@ -225,16 +246,22 @@ jobs:
script: | script: |
$ProgressPreference = 'SilentlyContinue' $ProgressPreference = 'SilentlyContinue'
$sdkroot = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots' | Select-Object -ExpandProperty KitsRoot10 $sdkroot = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots' | Select-Object -ExpandProperty KitsRoot10
$windows11sdk = "{0}bin\$(WIN11_SDK)\" -f $sdkroot $wsdkbin = "{0}bin\" -f $sdkroot
$windows11x64sdk = "{0}bin\$(WIN11_SDK)\x64" -f $sdkroot $wsdkverbin = "{0}bin\$(WIN11_SDK)\" -f $sdkroot
if (Test-Path "$windows11sdk") { $wsdkarchbin = "{0}bin\$(WIN11_SDK)\x64" -f $sdkroot
Write-Host "##vso[task.setvariable variable=WindowsSdkVerBinPath;]$windows11sdk" if (Test-Path "$wsdkarchbin") {
Write-Host "##vso[task.prependpath]$windows11x64sdk" Write-Host "##vso[task.setvariable variable=WindowsSdkBinPath;]$wsdkbin"
Write-Host "##vso[task.setvariable variable=WindowsSdkVerBinPath;]$wsdkverbin"
Write-Host "##vso[task.prependpath]$wsdkarchbin"
} }
else { else {
Write-Error -Message "##[error]Can't find Windows SDK ($(WIN11_SDK))" -ErrorAction Stop Write-Error -Message "##[error]Can't find Windows SDK ($(WIN11_SDK))" -ErrorAction Stop
} }
- task: CmdLine@2
displayName: GCC version
inputs:
script: g++ --version
- task: BatchScript@1 - task: BatchScript@1
displayName: CompileShaders.cmd displayName: CompileShaders.cmd
inputs: inputs:
@ -246,68 +273,63 @@ jobs:
filename: DDSView/hlsl.cmd filename: DDSView/hlsl.cmd
workingFolder: $(Build.SourcesDirectory)\DDSView workingFolder: $(Build.SourcesDirectory)\DDSView
- task: CmdLine@2 - task: CmdLine@2
displayName: GCC version displayName: VCPKG install packages
inputs: inputs:
script: g++ --version script: call vcpkg install --x-manifest-root=$(VCPKG_MANIFEST_DIR) --triplet=x64-mingw-static
- task: CmdLine@2 workingDirectory: $(VCPKG_ROOT)
displayName: VCPKG install headers
inputs:
script: |
call .\vcpkg install directxmath
@if ERRORLEVEL 1 goto error
call .\vcpkg install directx-headers
@if ERRORLEVEL 1 goto error
call .\vcpkg install openexr
@if ERRORLEVEL 1 goto error
call .\vcpkg install libpng
@if ERRORLEVEL 1 goto error
call .\vcpkg install libjpeg-turbo
@if ERRORLEVEL 1 goto error
:finish
@echo --- VCPKG COMPLETE ---
exit /b 0
:error
@echo --- ERROR: VCPKG FAILED ---
exit /b 1
workingDirectory: $(Build.SourcesDirectory)\vcpkg
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW-W64) displayName: CMake (MinGW-W64)
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out -DCMAKE_BUILD_TYPE="Debug" -DDIRECTX_ARCH=x64 -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x64-mingw-static -DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(Build.BinariesDirectory)\Shaders cmakeArgs: >
-B out -DCMAKE_BUILD_TYPE="Debug" -DDIRECTX_ARCH=x64
-DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles"
-DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(CompileShadersOutput)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-mingw-static
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW-W64) Build displayName: CMake (MinGW-W64) Build
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out cmakeArgs: --build out
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW-W64) w/ OpenEXR displayName: CMake (MinGW-W64) w/ OpenEXR
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out2 -DCMAKE_BUILD_TYPE="Debug" -DENABLE_OPENEXR_SUPPORT=ON -DBUILD_TESTING=OFF -DDIRECTX_ARCH=x64 -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x64-mingw-static -DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(Build.BinariesDirectory)\Shaders cmakeArgs: >
-B out2 -DCMAKE_BUILD_TYPE="Debug" -DENABLE_OPENEXR_SUPPORT=ON -DDIRECTX_ARCH=x64 -DBUILD_TESTING=OFF
-DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles"
-DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(CompileShadersOutput)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-mingw-static
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW-W64) Build w/ OpenEXR displayName: CMake (MinGW-W64) Build w/ OpenEXR
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out2 cmakeArgs: --build out2
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW-W64) w/ libjpeg displayName: CMake (MinGW-W64) w/ libjpeg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out3 -DCMAKE_BUILD_TYPE="Debug" -DENABLE_LIBJPEG_SUPPORT=ON -DBUILD_TESTING=OFF -DDIRECTX_ARCH=x64 -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x64-mingw-static -DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(Build.BinariesDirectory)\Shaders cmakeArgs: >
-B out3 -DCMAKE_BUILD_TYPE="Debug" -DENABLE_LIBJPEG_SUPPORT=ON -DDIRECTX_ARCH=x64 -DBUILD_TESTING=OFF
-DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles"
-DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(CompileShadersOutput)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-mingw-static
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW-W64) Build w/ libjpeg displayName: CMake (MinGW-W64) Build w/ libjpeg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out3 cmakeArgs: --build out3
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW-W64) w/ libpng displayName: CMake (MinGW-W64) w/ libpng
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out4 -DCMAKE_BUILD_TYPE="Debug" -DENABLE_LIBPNG_SUPPORT=ON -DBUILD_TESTING=OFF -DDIRECTX_ARCH=x64 -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x64-mingw-static -DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(Build.BinariesDirectory)\Shaders cmakeArgs: >
-B out4 -DCMAKE_BUILD_TYPE="Debug" -DENABLE_LIBPNG_SUPPORT=ON -DDIRECTX_ARCH=x64 -DBUILD_TESTING=OFF
-DCMAKE_CXX_COMPILER="g++.exe" -G "MinGW Makefiles"
-DUSE_PREBUILT_SHADERS=ON -DCOMPILED_SHADERS=$(CompileShadersOutput)
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-mingw-static
- task: CMake@1 - task: CMake@1
displayName: CMake (MinGW-W64) Build w/ libpng displayName: CMake (MinGW-W64) Build w/ libpng
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out4 cmakeArgs: --build out4

View File

@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
# #
# http://go.microsoft.com/fwlink/?LinkId=248926 # https://go.microsoft.com/fwlink/?LinkId=248926
# Builds the library and test suite. # Builds the library and test suite.
@ -28,6 +28,11 @@ resources:
type: git type: git
ref: refs/heads/main ref: refs/heads/main
trigger: none trigger: none
- repository: testRepo
name: walbourn/directxtextest
type: github
endpoint: microsoft
ref: refs/heads/main
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
@ -37,7 +42,6 @@ pool:
variables: variables:
Codeql.Enabled: false Codeql.Enabled: false
VC_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC' VC_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC'
GITHUB_PAT: $(GITHUBPUBLICTOKEN)
GUID_FEED: $(ADOFeedGUID) GUID_FEED: $(ADOFeedGUID)
jobs: jobs:
@ -49,19 +53,14 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: DeleteFiles@1 fetchDepth: 1
displayName: Delete files from Tests path: 's'
inputs: - checkout: testRepo
SourceFolder: Tests
Contents: '**'
RemoveSourceFolder: true
RemoveDotFiles: true
- task: CmdLine@2
displayName: Fetch Tests displayName: Fetch Tests
inputs: clean: true
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests fetchTags: false
workingDirectory: $(Build.SourcesDirectory) fetchDepth: 1
failOnStderr: true path: 's/Tests'
- task: NuGetToolInstaller@1 - task: NuGetToolInstaller@1
displayName: 'Use NuGet' displayName: 'Use NuGet'
- task: NuGetCommand@2 - task: NuGetCommand@2
@ -170,19 +169,14 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: DeleteFiles@1 fetchDepth: 1
displayName: Delete files from Tests path: 's'
inputs: - checkout: testRepo
SourceFolder: Tests
Contents: '**'
RemoveSourceFolder: true
RemoveDotFiles: true
- task: CmdLine@2
displayName: Fetch Tests displayName: Fetch Tests
inputs: clean: true
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests fetchTags: false
workingDirectory: $(Build.SourcesDirectory) fetchDepth: 1
failOnStderr: true path: 's/Tests'
- task: CmdLine@2 - task: CmdLine@2
displayName: Setup environment for CMake to use VS displayName: Setup environment for CMake to use VS
inputs: inputs:
@ -257,19 +251,14 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: DeleteFiles@1 fetchDepth: 1
displayName: Delete files from Tests path: 's'
inputs: - checkout: testRepo
SourceFolder: Tests
Contents: '**'
RemoveSourceFolder: true
RemoveDotFiles: true
- task: CmdLine@2
displayName: Fetch Tests displayName: Fetch Tests
inputs: clean: true
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests fetchTags: false
workingDirectory: $(Build.SourcesDirectory) fetchDepth: 1
failOnStderr: true path: 's/Tests'
- task: CmdLine@2 - task: CmdLine@2
displayName: Setup environment for CMake to use VS displayName: Setup environment for CMake to use VS
inputs: inputs:

View File

@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
# #
# http://go.microsoft.com/fwlink/?LinkId=248926 # https://go.microsoft.com/fwlink/?LinkId=248926
# Builds the library and test suite. # Builds the library and test suite.
@ -27,6 +27,11 @@ resources:
- repository: self - repository: self
type: git type: git
ref: refs/heads/main ref: refs/heads/main
- repository: testRepo
name: walbourn/directxtextest
type: github
endpoint: microsoft
ref: refs/heads/main
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
@ -35,7 +40,6 @@ pool:
variables: variables:
Codeql.Enabled: false Codeql.Enabled: false
GITHUB_PAT: $(GITHUBPUBLICTOKEN)
GUID_FEED: $(ADOFeedGUID) GUID_FEED: $(ADOFeedGUID)
jobs: jobs:
@ -47,19 +51,14 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: DeleteFiles@1 fetchDepth: 1
displayName: Delete files from Tests path: 's'
inputs: - checkout: testRepo
SourceFolder: Tests
Contents: '**'
RemoveSourceFolder: true
RemoveDotFiles: true
- task: CmdLine@2
displayName: Fetch Tests displayName: Fetch Tests
inputs: clean: true
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests fetchTags: false
workingDirectory: $(Build.SourcesDirectory) fetchDepth: 1
failOnStderr: true path: 's/Tests'
- task: NuGetToolInstaller@1 - task: NuGetToolInstaller@1
displayName: 'Use NuGet' displayName: 'Use NuGet'
- task: NuGetCommand@2 - task: NuGetCommand@2

View File

@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
# #
# http://go.microsoft.com/fwlink/?LinkId=248926 # https://go.microsoft.com/fwlink/?LinkId=248926
# Builds the library for Windows Subsystem for Linux (WSL) # Builds the library for Windows Subsystem for Linux (WSL)
@ -31,6 +31,21 @@ resources:
type: git type: git
ref: refs/heads/main ref: refs/heads/main
trigger: none trigger: none
- repository: dxHeadersRepo
name: Microsoft/DirectX-Headers
type: github
endpoint: microsoft
ref: refs/heads/main
- repository: dxMathRepo
name: Microsoft/DirectXMath
type: github
endpoint: microsoft
ref: refs/heads/main
- repository: vcpkgRepo
name: Microsoft/vcpkg
type: github
endpoint: microsoft
ref: refs/tags/$(VCPKG_TAG)
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
@ -39,8 +54,9 @@ pool:
variables: variables:
Codeql.Enabled: false Codeql.Enabled: false
VCPKG_CMAKE_DIR: '$(VCPKG_ROOT)/scripts/buildsystems/vcpkg.cmake' VCPKG_ROOT: $(Build.SourcesDirectory)/vcpkg
GITHUB_PAT: $(GITHUBPUBLICTOKEN) VCPKG_CMAKE_DIR: $(Build.SourcesDirectory)/vcpkg/scripts/buildsystems/vcpkg.cmake
VCPKG_MANIFEST_DIR: $(Build.SourcesDirectory)/build
LOCAL_PKG_DIR: '$(Agent.BuildDirectory)/install/' LOCAL_PKG_DIR: '$(Agent.BuildDirectory)/install/'
jobs: jobs:
@ -52,10 +68,20 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: CmdLine@2 fetchDepth: 1
displayName: Fetch directx-headers path: 's'
inputs: - checkout: dxHeadersRepo
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/DirectX-Headers.git directx-headers displayName: Fetch DirectX-Headers
clean: true
fetchTags: false
fetchDepth: 1
path: 's/directx-headers'
- checkout: dxMathRepo
displayName: Fetch DirectX-Math
clean: true
fetchTags: false
fetchDepth: 1
path: 's/directxmath'
- task: CMake@1 - task: CMake@1
displayName: CMake DirectX-Headers displayName: CMake DirectX-Headers
inputs: inputs:
@ -71,10 +97,6 @@ jobs:
inputs: inputs:
cwd: directx-headers cwd: directx-headers
cmakeArgs: --install . cmakeArgs: --install .
- task: CmdLine@2
displayName: Fetch directxmath
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/DirectXMath.git directxmath
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXMath displayName: CMake DirectXMath
inputs: inputs:
@ -107,22 +129,22 @@ jobs:
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) dbg displayName: CMake DirectXTex (Config) dbg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=$(LOCAL_PKG_DIR)/share;$(LOCAL_PKG_DIR)/cmake cmakeArgs: -B out -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=$(LOCAL_PKG_DIR)/share;$(LOCAL_PKG_DIR)/cmake
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) dbg displayName: CMake DirectXTex (Build) dbg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out -v cmakeArgs: --build out -v
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) rel displayName: CMake DirectXTex (Config) rel
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out2 -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$(LOCAL_PKG_DIR)/share;$(LOCAL_PKG_DIR)/cmake cmakeArgs: -B out2 -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$(LOCAL_PKG_DIR)/share;$(LOCAL_PKG_DIR)/cmake
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) rel displayName: CMake DirectXTex (Build) rel
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out2 -v cmakeArgs: --build out2 -v
- job: BUILD_WSL_VCPKG - job: BUILD_WSL_VCPKG
@ -133,11 +155,14 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: CmdLine@2 fetchDepth: 1
path: 's'
- checkout: vcpkgRepo
displayName: Fetch VCPKG displayName: Fetch VCPKG
inputs: clean: true
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/vcpkg.git fetchTags: false
workingDirectory: $(Build.SourcesDirectory) fetchDepth: 1
path: 's/vcpkg'
- task: Bash@3 - task: Bash@3
displayName: VCPKG Bootstrap displayName: VCPKG Bootstrap
inputs: inputs:
@ -152,57 +177,67 @@ jobs:
cmake --version cmake --version
- task: CmdLine@2 - task: CmdLine@2
displayName: VCPKG install headers displayName: VCPKG install packages
inputs: inputs:
script: $(Build.SourcesDirectory)/vcpkg/vcpkg install directxmath directx-headers openexr libpng zlib libjpeg-turbo script: vcpkg install --x-manifest-root=$(VCPKG_MANIFEST_DIR) --triplet=x64-linux
workingDirectory: $(Build.SourcesDirectory)/vcpkg workingDirectory: $(VCPKG_ROOT)
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) dbg displayName: CMake DirectXTex (Config) dbg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" cmakeArgs: >
-B out -DCMAKE_BUILD_TYPE=Debug -DDIRECTX_ARCH=x64
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-linux
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) dbg displayName: CMake DirectXTex (Build) dbg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out -v cmakeArgs: --build out -v
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) rel displayName: CMake DirectXTex (Config) rel
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out2 -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" cmakeArgs: >
-B out2 -DCMAKE_BUILD_TYPE=Release -DDIRECTX_ARCH=x64
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-linux
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) rel displayName: CMake DirectXTex (Build) rel
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out2 -v cmakeArgs: --build out2 -v
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) w/ OpenEXR displayName: CMake DirectXTex (Config) w/ OpenEXR
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out3 -DCMAKE_BUILD_TYPE=Debug -DENABLE_OPENEXR_SUPPORT=ON -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" cmakeArgs: >
-B out3 -DCMAKE_BUILD_TYPE=Debug -DENABLE_OPENEXR_SUPPORT=ON -DDIRECTX_ARCH=x64
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-linux
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) w/ OpenEXR displayName: CMake DirectXTex (Build) w/ OpenEXR
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out3 -v cmakeArgs: --build out3 -v
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) w/ libjpeg displayName: CMake DirectXTex (Config) w/ libjpeg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out4 -DCMAKE_BUILD_TYPE=Debug -DENABLE_LIBJPEG_SUPPORT=ON -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" cmakeArgs: >
-B out4 -DCMAKE_BUILD_TYPE=Debug -DENABLE_LIBJPEG_SUPPORT=ON -DDIRECTX_ARCH=x64
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-linux
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) w/ libjpeg displayName: CMake DirectXTex (Build) w/ libjpeg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out4 -v cmakeArgs: --build out4 -v
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) w/ libpng displayName: CMake DirectXTex (Config) w/ libpng
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out5 -DCMAKE_BUILD_TYPE=Debug -DENABLE_LIBPNG_SUPPORT=ON -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" cmakeArgs: >
-B out5 -DCMAKE_BUILD_TYPE=Debug -DENABLE_LIBPNG_SUPPORT=ON -DDIRECTX_ARCH=x64
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-linux
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) w/ libpng displayName: CMake DirectXTex (Build) w/ libpng
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out5 -v cmakeArgs: --build out5 -v

View File

@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
# #
# http://go.microsoft.com/fwlink/?LinkId=248926 # https://go.microsoft.com/fwlink/?LinkId=248926
# Builds the library for Windows Subsystem for Linux (WSL) # Builds the library for Windows Subsystem for Linux (WSL)
@ -23,7 +23,7 @@ trigger:
- '.github/*' - '.github/*'
- '.nuget/*' - '.nuget/*'
- build/*.cmd - build/*.cmd
- build/*.json - build/OneFuzz*.json
- build/*.props - build/*.props
- build/*.ps1 - build/*.ps1
- build/*.targets - build/*.targets
@ -39,7 +39,7 @@ pr:
- '.github/*' - '.github/*'
- '.nuget/*' - '.nuget/*'
- build/*.cmd - build/*.cmd
- build/*.json - build/OneFuzz*.json
- build/*.props - build/*.props
- build/*.ps1 - build/*.ps1
- build/*.targets - build/*.targets
@ -50,6 +50,21 @@ resources:
- repository: self - repository: self
type: git type: git
ref: refs/heads/main ref: refs/heads/main
- repository: dxHeadersRepo
name: Microsoft/DirectX-Headers
type: github
endpoint: microsoft
ref: refs/heads/main
- repository: dxMathRepo
name: Microsoft/DirectXMath
type: github
endpoint: microsoft
ref: refs/heads/main
- repository: vcpkgRepo
name: Microsoft/vcpkg
type: github
endpoint: microsoft
ref: refs/tags/$(VCPKG_TAG)
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
@ -58,8 +73,9 @@ pool:
variables: variables:
Codeql.Enabled: false Codeql.Enabled: false
VCPKG_CMAKE_DIR: '$(VCPKG_ROOT)/scripts/buildsystems/vcpkg.cmake' VCPKG_ROOT: $(Build.SourcesDirectory)/vcpkg
GITHUB_PAT: $(GITHUBPUBLICTOKEN) VCPKG_CMAKE_DIR: $(Build.SourcesDirectory)/vcpkg/scripts/buildsystems/vcpkg.cmake
VCPKG_MANIFEST_DIR: $(Build.SourcesDirectory)/build
LOCAL_PKG_DIR: '$(Agent.BuildDirectory)/install/' LOCAL_PKG_DIR: '$(Agent.BuildDirectory)/install/'
jobs: jobs:
@ -71,10 +87,20 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: CmdLine@2 fetchDepth: 1
displayName: Fetch directx-headers path: 's'
inputs: - checkout: dxHeadersRepo
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/DirectX-Headers.git directx-headers displayName: Fetch DirectX-Headers
clean: true
fetchTags: false
fetchDepth: 1
path: 's/directx-headers'
- checkout: dxMathRepo
displayName: Fetch DirectX-Math
clean: true
fetchTags: false
fetchDepth: 1
path: 's/directxmath'
- task: CMake@1 - task: CMake@1
displayName: CMake DirectX-Headers displayName: CMake DirectX-Headers
inputs: inputs:
@ -90,10 +116,6 @@ jobs:
inputs: inputs:
cwd: directx-headers cwd: directx-headers
cmakeArgs: --install . cmakeArgs: --install .
- task: CmdLine@2
displayName: Fetch directxmath
inputs:
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/DirectXMath.git directxmath
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXMath displayName: CMake DirectXMath
inputs: inputs:
@ -126,22 +148,22 @@ jobs:
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) dbg displayName: CMake DirectXTex (Config) dbg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=$(LOCAL_PKG_DIR)/share;$(LOCAL_PKG_DIR)/cmake cmakeArgs: -B out -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=$(LOCAL_PKG_DIR)/share;$(LOCAL_PKG_DIR)/cmake
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) dbg displayName: CMake DirectXTex (Build) dbg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out -v cmakeArgs: --build out -v
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) rel displayName: CMake DirectXTex (Config) rel
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out2 -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$(LOCAL_PKG_DIR)/share;$(LOCAL_PKG_DIR)/cmake cmakeArgs: -B out2 -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$(LOCAL_PKG_DIR)/share;$(LOCAL_PKG_DIR)/cmake
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) rel displayName: CMake DirectXTex (Build) rel
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out2 -v cmakeArgs: --build out2 -v
- job: BUILD_WSL_VCPKG - job: BUILD_WSL_VCPKG
@ -152,11 +174,14 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: CmdLine@2 fetchDepth: 1
path: 's'
- checkout: vcpkgRepo
displayName: Fetch VCPKG displayName: Fetch VCPKG
inputs: clean: true
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/vcpkg.git fetchTags: false
workingDirectory: $(Build.SourcesDirectory) fetchDepth: 1
path: 's/vcpkg'
- task: Bash@3 - task: Bash@3
displayName: VCPKG Bootstrap displayName: VCPKG Bootstrap
inputs: inputs:
@ -171,57 +196,67 @@ jobs:
cmake --version cmake --version
- task: CmdLine@2 - task: CmdLine@2
displayName: VCPKG install headers displayName: VCPKG install packages
inputs: inputs:
script: $(Build.SourcesDirectory)/vcpkg/vcpkg install directxmath directx-headers openexr libpng zlib libjpeg-turbo script: vcpkg install --x-manifest-root=$(VCPKG_MANIFEST_DIR) --triplet=x64-linux
workingDirectory: $(Build.SourcesDirectory)/vcpkg workingDirectory: $(VCPKG_ROOT)
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) dbg displayName: CMake DirectXTex (Config) dbg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" cmakeArgs: >
-B out -DCMAKE_BUILD_TYPE=Debug -DDIRECTX_ARCH=x64
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-linux
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) dbg displayName: CMake DirectXTex (Build) dbg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out -v cmakeArgs: --build out -v
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) rel displayName: CMake DirectXTex (Config) rel
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out2 -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" cmakeArgs: >
-B out2 -DCMAKE_BUILD_TYPE=Release -DDIRECTX_ARCH=x64
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-linux
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) rel displayName: CMake DirectXTex (Build) rel
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out2 -v cmakeArgs: --build out2 -v
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) w/ OpenEXR displayName: CMake DirectXTex (Config) w/ OpenEXR
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out3 -DCMAKE_BUILD_TYPE=Debug -DENABLE_OPENEXR_SUPPORT=ON -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" cmakeArgs: >
-B out3 -DCMAKE_BUILD_TYPE=Debug -DENABLE_OPENEXR_SUPPORT=ON -DDIRECTX_ARCH=x64
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-linux
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) w/ OpenEXR displayName: CMake DirectXTex (Build) w/ OpenEXR
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out3 -v cmakeArgs: --build out3 -v
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) w/ libjpeg displayName: CMake DirectXTex (Config) w/ libjpeg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out4 -DCMAKE_BUILD_TYPE=Debug -DENABLE_LIBJPEG_SUPPORT=ON -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" cmakeArgs: >
-B out4 -DCMAKE_BUILD_TYPE=Debug -DENABLE_LIBJPEG_SUPPORT=ON -DDIRECTX_ARCH=x64
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-linux
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) w/ libjpeg displayName: CMake DirectXTex (Build) w/ libjpeg
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out4 -v cmakeArgs: --build out4 -v
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Config) w/ libpng displayName: CMake DirectXTex (Config) w/ libpng
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: -B out5 -DCMAKE_BUILD_TYPE=Debug -DENABLE_LIBPNG_SUPPORT=ON -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" cmakeArgs: >
-B out5 -DCMAKE_BUILD_TYPE=Debug -DENABLE_LIBPNG_SUPPORT=ON -DDIRECTX_ARCH=x64
-DCMAKE_TOOLCHAIN_FILE="$(VCPKG_CMAKE_DIR)" -DVCPKG_MANIFEST_DIR="$(VCPKG_MANIFEST_DIR)" -DVCPKG_TARGET_TRIPLET=x64-linux
- task: CMake@1 - task: CMake@1
displayName: CMake DirectXTex (Build) w/ libpng displayName: CMake DirectXTex (Build) w/ libpng
inputs: inputs:
cwd: '$(Build.SourcesDirectory)' cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out5 -v cmakeArgs: --build out5 -v

View File

@ -1,13 +1,24 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
# #
# http://go.microsoft.com/fwlink/?LinkId=248926 # https://go.microsoft.com/fwlink/?LinkId=248926
# OneFuzz code coverage pipeline # OneFuzz code coverage pipeline
pr: none pr: none
trigger: none trigger: none
resources:
repositories:
- repository: self
type: git
ref: refs/heads/main
- repository: testRepo
name: walbourn/directxtextest
type: github
endpoint: microsoft
ref: refs/heads/main
pool: pool:
vmImage: windows-latest vmImage: windows-latest
@ -48,17 +59,17 @@ jobs:
workspace: workspace:
clean: all clean: all
steps: steps:
- task: CmdLine@2 - checkout: self
displayName: 'Fetch source' clean: true
inputs: fetchTags: false
script: | fetchDepth: 1
git clone --quiet --no-tags https://%GITHUBPUBLICTOKEN%@github.com/microsoft/DirectXTex.git path: 's'
cd DirectXTex - checkout: testRepo
git checkout $(commit-ID) displayName: Fetch Tests
git clone --quiet --no-tags https://%GITHUBPUBLICTOKEN%@github.com/walbourn/directxtextest.git Tests clean: true
workingDirectory: $(Build.SourcesDirectory) fetchTags: false
failOnStderr: true fetchDepth: 1
path: 's/Tests'
- powershell: | - powershell: |
Write-Host "Job ID: $(job-ID), Build Date: $(build-date), Branch: $(branch)" Write-Host "Job ID: $(job-ID), Build Date: $(build-date), Branch: $(branch)"
$SASUrl = [System.Uri]::new("$(sas-url)") $SASUrl = [System.Uri]::new("$(sas-url)")

View File

@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
# #
# http://go.microsoft.com/fwlink/?LinkId=248926 # https://go.microsoft.com/fwlink/?LinkId=248926
# Builds the library using CMake and submit for file fuzzing # Builds the library using CMake and submit for file fuzzing
@ -21,6 +21,11 @@ resources:
- repository: self - repository: self
type: git type: git
ref: refs/heads/main ref: refs/heads/main
- repository: testRepo
name: walbourn/directxtextest
type: github
endpoint: microsoft
ref: refs/heads/main
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
@ -28,7 +33,6 @@ variables:
Codeql.Enabled: false Codeql.Enabled: false
VS_GENERATOR: 'Visual Studio 17 2022' VS_GENERATOR: 'Visual Studio 17 2022'
WIN11_SDK: '10.0.22000.0' WIN11_SDK: '10.0.22000.0'
GITHUB_PAT: $(GITHUBPUBLICTOKEN)
pool: pool:
vmImage: windows-2022 vmImage: windows-2022
@ -40,19 +44,14 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
fetchTags: false fetchTags: false
- task: DeleteFiles@1 fetchDepth: 1
displayName: Delete files from Tests path: 's'
inputs: - checkout: testRepo
SourceFolder: Tests
Contents: '**'
RemoveSourceFolder: true
RemoveDotFiles: true
- task: CmdLine@2
displayName: Fetch Tests displayName: Fetch Tests
inputs: clean: true
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests fetchTags: false
workingDirectory: $(Build.SourcesDirectory) fetchDepth: 1
failOnStderr: true path: 's/Tests'
- task: CMake@1 - task: CMake@1
displayName: 'CMake (MSVC): Config with ASan' displayName: 'CMake (MSVC): Config with ASan'
inputs: inputs:

View File

@ -11,6 +11,7 @@ schedules:
branches: branches:
include: include:
- main - main
always: true
# GitHub Actions handles CodeQL and PREFAST for CI/PR # GitHub Actions handles CodeQL and PREFAST for CI/PR
trigger: none trigger: none