From ad55a75d05f09edc4290d58045d8fb5a09bb13ab Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Mon, 31 Mar 2025 15:29:45 -0700 Subject: [PATCH] Migrate ADO pipelines to .azuredevops folder (#602) --- .../DirectXTex-GitHub-CMake-Dev17.yml | 0 .../DirectXTex-GitHub-CMake-Xbox-Dev17.yml | 2 +- .../DirectXTex-GitHub-CMake-Xbox.yml | 0 .../pipelines}/DirectXTex-GitHub-CMake.yml | 0 .../pipelines}/DirectXTex-GitHub-Dev17.yml | 2 +- .../DirectXTex-GitHub-GDK-Dev17.yml | 2 +- .../pipelines}/DirectXTex-GitHub-GDK.yml | 0 .../pipelines}/DirectXTex-GitHub-MinGW.yml | 0 .../DirectXTex-GitHub-SDK-prerelease.yml | 0 .../DirectXTex-GitHub-SDK-release.yml | 0 .../DirectXTex-GitHub-Test-Dev17.yml | 2 +- .../pipelines}/DirectXTex-GitHub-Test.yml | 2 +- .../pipelines/DirectXTex-GitHub-VCPKG.yml | 0 .../pipelines}/DirectXTex-GitHub-WSL-11.yml | 2 +- .../pipelines}/DirectXTex-GitHub-WSL-13.yml | 2 +- .../pipelines}/DirectXTex-GitHub-WSL.yml | 0 .../pipelines}/DirectXTex-GitHub.yml | 2 +- .../DirectXTex-OneFuzz-Coverage.yml | 0 .../pipelines}/DirectXTex-OneFuzz.yml | 0 .../pipelines}/DirectXTex-SDL.yml | 53 ++++++++++++++++++- .github/workflows/bvt.yml | 3 +- .github/workflows/codeql.yml | 3 +- .github/workflows/main.yml | 3 +- .github/workflows/msbuild.yml | 1 + .github/workflows/msvc.yml | 3 +- .github/workflows/test.yml | 3 +- .github/workflows/uwp.yml | 3 +- .github/workflows/vcpkg.yml | 7 ++- .github/workflows/wsl.yml | 3 +- README.md | 2 +- 30 files changed, 81 insertions(+), 19 deletions(-) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-CMake-Dev17.yml (100%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-CMake-Xbox-Dev17.yml (98%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-CMake-Xbox.yml (100%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-CMake.yml (100%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-Dev17.yml (99%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-GDK-Dev17.yml (99%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-GDK.yml (100%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-MinGW.yml (100%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-SDK-prerelease.yml (100%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-SDK-release.yml (100%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-Test-Dev17.yml (99%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-Test.yml (99%) rename build/DirectX-GitHub-VCPKG.yml => .azuredevops/pipelines/DirectXTex-GitHub-VCPKG.yml (100%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-WSL-11.yml (99%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-WSL-13.yml (99%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub-WSL.yml (100%) rename {build => .azuredevops/pipelines}/DirectXTex-GitHub.yml (98%) rename {build => .azuredevops/pipelines}/DirectXTex-OneFuzz-Coverage.yml (100%) rename {build => .azuredevops/pipelines}/DirectXTex-OneFuzz.yml (100%) rename {build => .azuredevops/pipelines}/DirectXTex-SDL.yml (71%) diff --git a/build/DirectXTex-GitHub-CMake-Dev17.yml b/.azuredevops/pipelines/DirectXTex-GitHub-CMake-Dev17.yml similarity index 100% rename from build/DirectXTex-GitHub-CMake-Dev17.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-CMake-Dev17.yml diff --git a/build/DirectXTex-GitHub-CMake-Xbox-Dev17.yml b/.azuredevops/pipelines/DirectXTex-GitHub-CMake-Xbox-Dev17.yml similarity index 98% rename from build/DirectXTex-GitHub-CMake-Xbox-Dev17.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-CMake-Xbox-Dev17.yml index 173af6a..fe6b3f4 100644 --- a/build/DirectXTex-GitHub-CMake-Xbox-Dev17.yml +++ b/.azuredevops/pipelines/DirectXTex-GitHub-CMake-Xbox-Dev17.yml @@ -20,10 +20,10 @@ pr: - main paths: include: + - '.azuredevops/pipelines/DirectXTex-GitHub-CMake-Xbox-Dev17.yml' - CMake* - build/*.cmake - build/*.in - - build/DirectXTex-GitHub-CMake-Xbox-Dev17.yml - DirectXTex/Shaders/CompileShaders.cmd - Auxiliary/*Xbox* diff --git a/build/DirectXTex-GitHub-CMake-Xbox.yml b/.azuredevops/pipelines/DirectXTex-GitHub-CMake-Xbox.yml similarity index 100% rename from build/DirectXTex-GitHub-CMake-Xbox.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-CMake-Xbox.yml diff --git a/build/DirectXTex-GitHub-CMake.yml b/.azuredevops/pipelines/DirectXTex-GitHub-CMake.yml similarity index 100% rename from build/DirectXTex-GitHub-CMake.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-CMake.yml diff --git a/build/DirectXTex-GitHub-Dev17.yml b/.azuredevops/pipelines/DirectXTex-GitHub-Dev17.yml similarity index 99% rename from build/DirectXTex-GitHub-Dev17.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-Dev17.yml index 2660d8d..f94c403 100644 --- a/build/DirectXTex-GitHub-Dev17.yml +++ b/.azuredevops/pipelines/DirectXTex-GitHub-Dev17.yml @@ -20,7 +20,7 @@ pr: - main paths: include: - - build/DirectXTex-GitHub-Dev17.yml + - '.azuredevops/pipelines/DirectXTex-GitHub-Dev17.yml' - DirectXTex/Shaders/CompileShaders.cmd resources: diff --git a/build/DirectXTex-GitHub-GDK-Dev17.yml b/.azuredevops/pipelines/DirectXTex-GitHub-GDK-Dev17.yml similarity index 99% rename from build/DirectXTex-GitHub-GDK-Dev17.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-GDK-Dev17.yml index 8ba4d3f..ef99ee1 100644 --- a/build/DirectXTex-GitHub-GDK-Dev17.yml +++ b/.azuredevops/pipelines/DirectXTex-GitHub-GDK-Dev17.yml @@ -20,8 +20,8 @@ pr: - main paths: include: + - '.azuredevops/pipelines/DirectXTex-GitHub-GDK-Dev17.yml' - CMakeList.txt - - build/DirectXTex-GitHub-GDK-Dev17.yml - build/*.in - build/*.cmake - build/SetupBWOI.* diff --git a/build/DirectXTex-GitHub-GDK.yml b/.azuredevops/pipelines/DirectXTex-GitHub-GDK.yml similarity index 100% rename from build/DirectXTex-GitHub-GDK.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-GDK.yml diff --git a/build/DirectXTex-GitHub-MinGW.yml b/.azuredevops/pipelines/DirectXTex-GitHub-MinGW.yml similarity index 100% rename from build/DirectXTex-GitHub-MinGW.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-MinGW.yml diff --git a/build/DirectXTex-GitHub-SDK-prerelease.yml b/.azuredevops/pipelines/DirectXTex-GitHub-SDK-prerelease.yml similarity index 100% rename from build/DirectXTex-GitHub-SDK-prerelease.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-SDK-prerelease.yml diff --git a/build/DirectXTex-GitHub-SDK-release.yml b/.azuredevops/pipelines/DirectXTex-GitHub-SDK-release.yml similarity index 100% rename from build/DirectXTex-GitHub-SDK-release.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-SDK-release.yml diff --git a/build/DirectXTex-GitHub-Test-Dev17.yml b/.azuredevops/pipelines/DirectXTex-GitHub-Test-Dev17.yml similarity index 99% rename from build/DirectXTex-GitHub-Test-Dev17.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-Test-Dev17.yml index a2a55cf..2b5522c 100644 --- a/build/DirectXTex-GitHub-Test-Dev17.yml +++ b/.azuredevops/pipelines/DirectXTex-GitHub-Test-Dev17.yml @@ -20,7 +20,7 @@ pr: - main paths: include: - - build/DirectXTex-GitHub-Test-Dev17.yml + - '.azuredevops/pipelines/DirectXTex-GitHub-Test-Dev17.yml' resources: repositories: diff --git a/build/DirectXTex-GitHub-Test.yml b/.azuredevops/pipelines/DirectXTex-GitHub-Test.yml similarity index 99% rename from build/DirectXTex-GitHub-Test.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-Test.yml index 21b738d..80ec0f6 100644 --- a/build/DirectXTex-GitHub-Test.yml +++ b/.azuredevops/pipelines/DirectXTex-GitHub-Test.yml @@ -20,7 +20,7 @@ pr: - main paths: include: - - build/DirectXTex-GitHub-Test.yml + - '.azuredevops/pipelines/DirectXTex-GitHub-Test.yml' resources: repositories: diff --git a/build/DirectX-GitHub-VCPKG.yml b/.azuredevops/pipelines/DirectXTex-GitHub-VCPKG.yml similarity index 100% rename from build/DirectX-GitHub-VCPKG.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-VCPKG.yml diff --git a/build/DirectXTex-GitHub-WSL-11.yml b/.azuredevops/pipelines/DirectXTex-GitHub-WSL-11.yml similarity index 99% rename from build/DirectXTex-GitHub-WSL-11.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-WSL-11.yml index a20e538..78bb4fb 100644 --- a/build/DirectXTex-GitHub-WSL-11.yml +++ b/.azuredevops/pipelines/DirectXTex-GitHub-WSL-11.yml @@ -20,10 +20,10 @@ pr: - main paths: include: + - '.azuredevops/pipelines/DirectXTex-GitHub-WSL-11.yml' - CMake* - build/*.cmake - build/*.in - - build/DirectXTex-GitHub-WSL-11.yml - Auxiliary/*EXR* - Auxiliary/*JPEG* - Auxiliary/*PNG* diff --git a/build/DirectXTex-GitHub-WSL-13.yml b/.azuredevops/pipelines/DirectXTex-GitHub-WSL-13.yml similarity index 99% rename from build/DirectXTex-GitHub-WSL-13.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-WSL-13.yml index 4e783b8..6ee1a8d 100644 --- a/build/DirectXTex-GitHub-WSL-13.yml +++ b/.azuredevops/pipelines/DirectXTex-GitHub-WSL-13.yml @@ -20,10 +20,10 @@ pr: - main paths: include: + - '.azuredevops/pipelines/DirectXTex-GitHub-WSL-13.yml' - CMake* - build/*.cmake - build/*.in - - build/DirectXTex-GitHub-WSL-13.yml - Auxiliary/*EXR* - Auxiliary/*JPEG* - Auxiliary/*PNG* diff --git a/build/DirectXTex-GitHub-WSL.yml b/.azuredevops/pipelines/DirectXTex-GitHub-WSL.yml similarity index 100% rename from build/DirectXTex-GitHub-WSL.yml rename to .azuredevops/pipelines/DirectXTex-GitHub-WSL.yml diff --git a/build/DirectXTex-GitHub.yml b/.azuredevops/pipelines/DirectXTex-GitHub.yml similarity index 98% rename from build/DirectXTex-GitHub.yml rename to .azuredevops/pipelines/DirectXTex-GitHub.yml index a59ac08..270402c 100644 --- a/build/DirectXTex-GitHub.yml +++ b/.azuredevops/pipelines/DirectXTex-GitHub.yml @@ -20,7 +20,7 @@ pr: - main paths: include: - - build/DirectXTex-GitHub.yml + - '.azuredevops/pipelines/DirectXTex-GitHub.yml' - DirectXTex/Shaders/CompileShaders.cmd resources: diff --git a/build/DirectXTex-OneFuzz-Coverage.yml b/.azuredevops/pipelines/DirectXTex-OneFuzz-Coverage.yml similarity index 100% rename from build/DirectXTex-OneFuzz-Coverage.yml rename to .azuredevops/pipelines/DirectXTex-OneFuzz-Coverage.yml diff --git a/build/DirectXTex-OneFuzz.yml b/.azuredevops/pipelines/DirectXTex-OneFuzz.yml similarity index 100% rename from build/DirectXTex-OneFuzz.yml rename to .azuredevops/pipelines/DirectXTex-OneFuzz.yml diff --git a/build/DirectXTex-SDL.yml b/.azuredevops/pipelines/DirectXTex-SDL.yml similarity index 71% rename from build/DirectXTex-SDL.yml rename to .azuredevops/pipelines/DirectXTex-SDL.yml index 9718caf..5570765 100644 --- a/build/DirectXTex-SDL.yml +++ b/.azuredevops/pipelines/DirectXTex-SDL.yml @@ -11,7 +11,7 @@ schedules: branches: include: - main - always: true + always: true # GitHub Actions handles CodeQL and PREFAST for CI/PR trigger: none @@ -21,7 +21,7 @@ pr: - main paths: include: - - build/DirectXTex-SDL.yml + - '.azuredevops/pipelines/DirectXTex-SDL.yml' resources: repositories: @@ -114,6 +114,55 @@ jobs: - task: ComponentGovernanceComponentDetection@0 displayName: Component Detection +- job: SDL_BUILD_DLL + displayName: 'Build using required SDL tools for DLLs' + workspace: + clean: all + steps: + - checkout: self + clean: true + fetchTags: false + - task: NodeTool@0 + displayName: 'NPM install' + inputs: + versionSpec: 14.x + - task: CMake@1 + displayName: 'CMake (MSVC): Config x64' + inputs: + cwd: '$(Build.SourcesDirectory)' + cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DENABLE_SPECTRE_MITIGATION=ON -DBUILD_SHARED_LIBS=ON -DBUILD_TOOLS=OFF' + - task: CMake@1 + displayName: 'CMake (MSVC): Build x64 Release' + inputs: + cwd: '$(Build.SourcesDirectory)' + cmakeArgs: --build out -v --config RelWithDebInfo + - task: securedevelopmentteam.vss-secure-development-tools.build-task-antimalware.AntiMalware@4 + displayName: 'Run AntiMalware' + inputs: + InputType: 'Basic' + ScanType: 'CustomScan' + FileDirPath: $(Agent.BuildDirectory) + EnableSERVICEs: true + SupportLogOnError: false + TreatSignatureUpdateFailureAs: 'Warning' + SignatureFreshness: 'OneDay' + TreatStaleSignatureAs: 'Error' + condition: always() + - task: securedevelopmentteam.vss-secure-development-tools.build-task-binskim.BinSkim@4 + displayName: 'Run BinSkim' + inputs: + AnalyzeTargetBinskim: '' + AnalyzeTargetGlob: +:file|out\bin\**\RelWithDebInfo\*.dll + AnalyzeVerbose: true + - task: securedevelopmentteam.vss-secure-development-tools.build-task-postanalysis.PostAnalysis@2 + displayName: 'Post Analysis' + inputs: + GdnBreakAllTools: true + GdnBreakPolicy: 'Microsoft' + GdnBreakPolicyMinSev: 'Error' + - task: ComponentGovernanceComponentDetection@0 + displayName: Component Detection + - job: VC_PREFAST displayName: 'Build using /analyze (PREFAST)' workspace: diff --git a/.github/workflows/bvt.yml b/.github/workflows/bvt.yml index 41a2855..06f733e 100644 --- a/.github/workflows/bvt.yml +++ b/.github/workflows/bvt.yml @@ -13,13 +13,14 @@ on: paths-ignore: - '*.md' - LICENSE + - '.azuredevops/*' - '.nuget/*' - build/*.cmd - build/*.json - build/*.props - build/*.ps1 - build/*.targets - - build/*.yml + - build/*.xvd permissions: contents: read diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 07a9dbe..921e83d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,13 +13,14 @@ on: paths-ignore: - '*.md' - LICENSE + - '.azuredevops/*' - '.nuget/*' - build/*.cmd - build/*.json - build/*.props - build/*.ps1 - build/*.targets - - build/*.yml + - build/*.xvd schedule: - cron: '43 3 * * 3' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a2f9295..9cf7b97 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,13 +13,14 @@ on: paths-ignore: - '*.md' - LICENSE + - '.azuredevops/*' - '.nuget/*' - build/*.cmd - build/*.json - build/*.props - build/*.ps1 - build/*.targets - - build/*.yml + - build/*.xvd permissions: contents: read diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 7ab9017..5d4a157 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -13,6 +13,7 @@ on: paths-ignore: - '*.md' - LICENSE + - '.azuredevops/*' - '.nuget/*' - build/* diff --git a/.github/workflows/msvc.yml b/.github/workflows/msvc.yml index 4aa7df0..0b3e61f 100644 --- a/.github/workflows/msvc.yml +++ b/.github/workflows/msvc.yml @@ -13,13 +13,14 @@ on: paths-ignore: - '*.md' - LICENSE + - '.azuredevops/*' - '.nuget/*' - build/*.cmd - build/*.json - build/*.props - build/*.ps1 - build/*.targets - - build/*.yml + - build/*.xvd schedule: - cron: '41 16 * * 1' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8285c6e..081ae36 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,13 +13,14 @@ on: paths-ignore: - '*.md' - LICENSE + - '.azuredevops/*' - '.nuget/*' - build/*.cmd - build/*.json - build/*.props - build/*.ps1 - build/*.targets - - build/*.yml + - build/*.xvd env: DIRECTXTEX_MEDIA_PATH: ${{ github.workspace }}/Media diff --git a/.github/workflows/uwp.yml b/.github/workflows/uwp.yml index 8dcc56f..c153790 100644 --- a/.github/workflows/uwp.yml +++ b/.github/workflows/uwp.yml @@ -13,13 +13,14 @@ on: paths-ignore: - '*.md' - LICENSE + - '.azuredevops/*' - '.nuget/*' - build/*.cmd - build/*.json - build/*.props - build/*.ps1 - build/*.targets - - build/*.yml + - build/*.xvd permissions: contents: read diff --git a/.github/workflows/vcpkg.yml b/.github/workflows/vcpkg.yml index 2092d08..74d237a 100644 --- a/.github/workflows/vcpkg.yml +++ b/.github/workflows/vcpkg.yml @@ -13,7 +13,12 @@ on: paths-ignore: - '*.md' - LICENSE - - build/* + - '.azuredevops/*' + - build/*.cmd + - build/*.props + - build/*.ps1 + - build/*.targets + - build/*.xvd permissions: contents: read diff --git a/.github/workflows/wsl.yml b/.github/workflows/wsl.yml index d7d932e..1304f5b 100644 --- a/.github/workflows/wsl.yml +++ b/.github/workflows/wsl.yml @@ -13,13 +13,14 @@ on: paths-ignore: - '*.md' - LICENSE + - '.azuredevops/*' - '.nuget/*' - build/*.cmd - build/*.json - build/*.props - build/*.ps1 - build/*.targets - - build/*.yml + - build/*.xvd jobs: build: diff --git a/README.md b/README.md index 52dff6a..1486842 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ These components are designed to work without requiring any content from the leg * ``build\`` - + Contains YAML files for the build pipelines along with some miscellaneous build files and scripts. + + Contains miscellaneous build files and scripts. ## Documentation