From 5789d6ab66ab285fc9b6e136c72820c7beb6718e Mon Sep 17 00:00:00 2001 From: walbourn Date: Thu, 23 Oct 2025 20:57:11 -0700 Subject: [PATCH 1/3] Add pipline for Address Santizier testing --- .github/workflows/asan.yml | 80 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .github/workflows/asan.yml diff --git a/.github/workflows/asan.yml b/.github/workflows/asan.yml new file mode 100644 index 0000000..3976cb6 --- /dev/null +++ b/.github/workflows/asan.yml @@ -0,0 +1,80 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# +# http://go.microsoft.com/fwlink/?LinkId=248929 + +name: 'Address Sanitizer (x64)' + +on: + push: + branches: "main" + paths-ignore: + - '*.md' + - LICENSE + - '.azuredevops/**' + - '.nuget/*' + - build/*.cmd + - build/*.json + - build/*.props + - build/*.ps1 + - build/*.targets + pull_request: + branches: "main" + paths-ignore: + - '*.md' + - LICENSE + - '.azuredevops/**' + - '.nuget/*' + - build/*.cmd + - build/*.json + - build/*.props + - build/*.ps1 + - build/*.targets + +permissions: + contents: read + +jobs: + build: + runs-on: windows-2022 + timeout-minutes: 20 + + strategy: + fail-fast: false + + matrix: + toolver: ['14.29', '14'] + build_type: [x64-Release] + arch: [amd64] + + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + + - name: Clone test repository + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + repository: walbourn/directxmathtest + path: Tests + ref: main + + - name: 'Install Ninja' + run: choco install ninja + + - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 + with: + arch: ${{ matrix.arch }} + toolset: ${{ matrix.toolver }} + + - name: 'Configure CMake' + working-directory: ${{ github.workspace }} + run: > + cmake --preset=${{ matrix.build_type }} + -DBUILD_TESTING=ON -DBUILD_TOOLS=OFF -ENABLE_ASAN=ON + + - 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 From 2483031c962d3686d9225dbf6af04308bf804d60 Mon Sep 17 00:00:00 2001 From: walbourn Date: Thu, 23 Oct 2025 21:02:53 -0700 Subject: [PATCH 2/3] Typo fix --- .github/workflows/asan.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/asan.yml b/.github/workflows/asan.yml index 3976cb6..1e56579 100644 --- a/.github/workflows/asan.yml +++ b/.github/workflows/asan.yml @@ -69,7 +69,7 @@ jobs: working-directory: ${{ github.workspace }} run: > cmake --preset=${{ matrix.build_type }} - -DBUILD_TESTING=ON -DBUILD_TOOLS=OFF -ENABLE_ASAN=ON + -DBUILD_TESTING=ON -DBUILD_TOOLS=OFF -DENABLE_ASAN=ON - name: 'Build' working-directory: ${{ github.workspace }} From 7befcbfda34ec903d8e158346720713650b75792 Mon Sep 17 00:00:00 2001 From: walbourn Date: Thu, 23 Oct 2025 21:06:00 -0700 Subject: [PATCH 3/3] Fixup --- .github/workflows/asan.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/asan.yml b/.github/workflows/asan.yml index 1e56579..efb0646 100644 --- a/.github/workflows/asan.yml +++ b/.github/workflows/asan.yml @@ -69,7 +69,7 @@ jobs: working-directory: ${{ github.workspace }} run: > cmake --preset=${{ matrix.build_type }} - -DBUILD_TESTING=ON -DBUILD_TOOLS=OFF -DENABLE_ASAN=ON + -DBUILD_TESTING=ON -DENABLE_ASAN=ON - name: 'Build' working-directory: ${{ github.workspace }}