mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-21 12:00:06 +00:00
Update ADO build pipelines (#416)
This commit is contained in:
parent
282812b973
commit
14f26b27d2
@ -71,13 +71,16 @@ namespace
|
|||||||
_In_ IWICBitmap* src,
|
_In_ IWICBitmap* src,
|
||||||
_In_ TEX_FILTER_FLAGS filter,
|
_In_ TEX_FILTER_FLAGS filter,
|
||||||
_In_ const WICPixelFormatGUID& desiredPixelFormat,
|
_In_ const WICPixelFormatGUID& desiredPixelFormat,
|
||||||
_Deref_out_ IWICBitmap** dest) noexcept
|
_COM_Outptr_ IWICBitmap** dest) noexcept
|
||||||
{
|
{
|
||||||
if (!pWIC || !src || !dest)
|
if (!dest)
|
||||||
return E_POINTER;
|
return E_POINTER;
|
||||||
|
|
||||||
*dest = nullptr;
|
*dest = nullptr;
|
||||||
|
|
||||||
|
if (!pWIC || !src)
|
||||||
|
return E_POINTER;
|
||||||
|
|
||||||
WICPixelFormatGUID actualPixelFormat;
|
WICPixelFormatGUID actualPixelFormat;
|
||||||
HRESULT hr = src->GetPixelFormat(&actualPixelFormat);
|
HRESULT hr = src->GetPixelFormat(&actualPixelFormat);
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ jobs:
|
|||||||
# We can use the preinstalled vcpkg instead of the latest when MS Hosted updates their vcpkg to the newer DirectX-Headers
|
# We can use the preinstalled vcpkg instead of the latest when MS Hosted updates their vcpkg to the newer DirectX-Headers
|
||||||
displayName: Fetch VCPKG
|
displayName: Fetch VCPKG
|
||||||
inputs:
|
inputs:
|
||||||
script: git clone --quiet https://%GITHUB_PAT%@github.com/microsoft/vcpkg.git
|
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/vcpkg.git
|
||||||
workingDirectory: $(Build.SourcesDirectory)
|
workingDirectory: $(Build.SourcesDirectory)
|
||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: VCPKG Bootstrap
|
displayName: VCPKG Bootstrap
|
||||||
@ -154,12 +154,12 @@ jobs:
|
|||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: Fetch VCPKG
|
displayName: Fetch VCPKG
|
||||||
inputs:
|
inputs:
|
||||||
script: git clone --quiet https://%GITHUB_PAT%@github.com/microsoft/vcpkg.git
|
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/vcpkg.git
|
||||||
workingDirectory: $(Build.SourcesDirectory)
|
workingDirectory: $(Build.SourcesDirectory)
|
||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: Fetch Tests
|
displayName: Fetch Tests
|
||||||
inputs:
|
inputs:
|
||||||
script: git clone --quiet https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests
|
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests
|
||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: VCPKG Bootstrap
|
displayName: VCPKG Bootstrap
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -48,7 +48,7 @@ jobs:
|
|||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: Fetch Tests
|
displayName: Fetch Tests
|
||||||
inputs:
|
inputs:
|
||||||
script: git clone --quiet https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests
|
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests
|
||||||
workingDirectory: $(Build.SourcesDirectory)
|
workingDirectory: $(Build.SourcesDirectory)
|
||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
- task: VSBuild@1
|
- task: VSBuild@1
|
||||||
@ -159,7 +159,7 @@ jobs:
|
|||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: Fetch Tests
|
displayName: Fetch Tests
|
||||||
inputs:
|
inputs:
|
||||||
script: git clone --quiet https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests
|
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests
|
||||||
workingDirectory: $(Build.SourcesDirectory)
|
workingDirectory: $(Build.SourcesDirectory)
|
||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
- task: ChocolateyCommand@0
|
- task: ChocolateyCommand@0
|
||||||
@ -194,6 +194,9 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
cwd: '$(Build.SourcesDirectory)'
|
cwd: '$(Build.SourcesDirectory)'
|
||||||
cmakeArgs: --build out/build/x64-Debug -v
|
cmakeArgs: --build out/build/x64-Debug -v
|
||||||
|
- task: DeleteFiles@1
|
||||||
|
inputs:
|
||||||
|
Contents: 'out'
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
displayName: CMake (MSVC; x64-Release) Config
|
displayName: CMake (MSVC; x64-Release) Config
|
||||||
inputs:
|
inputs:
|
||||||
@ -204,6 +207,9 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
cwd: '$(Build.SourcesDirectory)'
|
cwd: '$(Build.SourcesDirectory)'
|
||||||
cmakeArgs: --build out/build/x64-Release -v
|
cmakeArgs: --build out/build/x64-Release -v
|
||||||
|
- task: DeleteFiles@1
|
||||||
|
inputs:
|
||||||
|
Contents: 'out'
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
displayName: CMake (clang/LLVM; x64-Debug) Config
|
displayName: CMake (clang/LLVM; x64-Debug) Config
|
||||||
inputs:
|
inputs:
|
||||||
@ -214,6 +220,9 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
cwd: '$(Build.SourcesDirectory)'
|
cwd: '$(Build.SourcesDirectory)'
|
||||||
cmakeArgs: --build out/build/x64-Debug-Clang -v
|
cmakeArgs: --build out/build/x64-Debug-Clang -v
|
||||||
|
- task: DeleteFiles@1
|
||||||
|
inputs:
|
||||||
|
Contents: 'out'
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
displayName: CMake (clang/LLVM; x64-Release) Config
|
displayName: CMake (clang/LLVM; x64-Release) Config
|
||||||
inputs:
|
inputs:
|
||||||
@ -224,6 +233,9 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
cwd: '$(Build.SourcesDirectory)'
|
cwd: '$(Build.SourcesDirectory)'
|
||||||
cmakeArgs: --build out/build/x64-Release-Clang -v
|
cmakeArgs: --build out/build/x64-Release-Clang -v
|
||||||
|
- task: DeleteFiles@1
|
||||||
|
inputs:
|
||||||
|
Contents: 'out'
|
||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: Set LIB for ARM64
|
displayName: Set LIB for ARM64
|
||||||
inputs:
|
inputs:
|
||||||
@ -245,6 +257,9 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
cwd: '$(Build.SourcesDirectory)'
|
cwd: '$(Build.SourcesDirectory)'
|
||||||
cmakeArgs: --build out/build/arm64-Debug-Clang -v
|
cmakeArgs: --build out/build/arm64-Debug-Clang -v
|
||||||
|
- task: DeleteFiles@1
|
||||||
|
inputs:
|
||||||
|
Contents: 'out'
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
displayName: CMake (clang/LLVM; arm64-Release) Config
|
displayName: CMake (clang/LLVM; arm64-Release) Config
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -67,7 +67,7 @@ jobs:
|
|||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: Fetch Tests
|
displayName: Fetch Tests
|
||||||
inputs:
|
inputs:
|
||||||
script: git clone --quiet https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests
|
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests
|
||||||
workingDirectory: $(Build.SourcesDirectory)
|
workingDirectory: $(Build.SourcesDirectory)
|
||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
- task: VSBuild@1
|
- task: VSBuild@1
|
||||||
|
@ -42,7 +42,7 @@ jobs:
|
|||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: Fetch directx-headers
|
displayName: Fetch directx-headers
|
||||||
inputs:
|
inputs:
|
||||||
script: git clone --quiet https://%GITHUB_PAT%@github.com/microsoft/DirectX-Headers.git directx-headers
|
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/DirectX-Headers.git directx-headers
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
displayName: CMake DirectX-Headers
|
displayName: CMake DirectX-Headers
|
||||||
inputs:
|
inputs:
|
||||||
@ -61,7 +61,7 @@ jobs:
|
|||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: Fetch directxmath
|
displayName: Fetch directxmath
|
||||||
inputs:
|
inputs:
|
||||||
script: git clone --quiet https://%GITHUB_PAT%@github.com/microsoft/DirectXMath.git directxmath
|
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:
|
||||||
|
@ -61,7 +61,7 @@ jobs:
|
|||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: Fetch directx-headers
|
displayName: Fetch directx-headers
|
||||||
inputs:
|
inputs:
|
||||||
script: git clone --quiet https://%GITHUB_PAT%@github.com/microsoft/DirectX-Headers.git directx-headers
|
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/microsoft/DirectX-Headers.git directx-headers
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
displayName: CMake DirectX-Headers
|
displayName: CMake DirectX-Headers
|
||||||
inputs:
|
inputs:
|
||||||
@ -80,7 +80,7 @@ jobs:
|
|||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: Fetch directxmath
|
displayName: Fetch directxmath
|
||||||
inputs:
|
inputs:
|
||||||
script: git clone --quiet https://%GITHUB_PAT%@github.com/microsoft/DirectXMath.git directxmath
|
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:
|
||||||
|
@ -51,7 +51,7 @@ jobs:
|
|||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: Fetch Tests
|
displayName: Fetch Tests
|
||||||
inputs:
|
inputs:
|
||||||
script: git clone --quiet https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests
|
script: git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxtextest.git Tests
|
||||||
workingDirectory: $(Build.SourcesDirectory)
|
workingDirectory: $(Build.SourcesDirectory)
|
||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
|
@ -58,18 +58,19 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
cwd: '$(Build.SourcesDirectory)'
|
cwd: '$(Build.SourcesDirectory)'
|
||||||
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DENABLE_SPECTRE_MITIGATION=ON'
|
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DENABLE_SPECTRE_MITIGATION=ON'
|
||||||
- task: Semmle@1
|
- task: CodeQL3000Init@0
|
||||||
displayName: 'Run CodeQL (Semmle) (C++)'
|
|
||||||
env:
|
|
||||||
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
|
||||||
inputs:
|
inputs:
|
||||||
sourceCodeDirectory: '$(Build.SourcesDirectory)'
|
Enabled: true
|
||||||
language: 'cpp'
|
- task: VSBuild@1
|
||||||
querySuite: 'Recommended'
|
displayName: 'Build C++ with CodeQL'
|
||||||
timeout: '1800'
|
inputs:
|
||||||
ram: '16384'
|
solution: '$(Build.SourcesDirectory)/out/DirectXTex.sln'
|
||||||
addProjectDirToScanningExclusionList: true
|
vsVersion: 17.0
|
||||||
buildCommandsString: '"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsMSBuildCmd.bat" && msbuild $(Build.SourcesDirectory)/out/DirectXTex.sln /p:Configuration=Release'
|
platform: x64
|
||||||
|
configuration: Release
|
||||||
|
msbuildArchitecture: x64
|
||||||
|
- task: CodeQL3000Finalize@0
|
||||||
|
condition: always()
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
displayName: 'CMake (MSVC): Build x64 Release'
|
displayName: 'CMake (MSVC): Build x64 Release'
|
||||||
inputs:
|
inputs:
|
||||||
|
Loading…
Reference in New Issue
Block a user