|
1 | | -# Copyright (c) Microsoft Corporation. |
2 | | -# Licensed under the MIT License. |
3 | | -# |
4 | | -# http://go.microsoft.com/fwlink/?LinkId=248929 |
5 | | - |
6 | | -name: 'Address Sanitizer (x64)' |
7 | | - |
8 | | -on: |
9 | | - push: |
10 | | - branches: "main" |
11 | | - paths-ignore: |
12 | | - - '*.md' |
13 | | - - LICENSE |
14 | | - - '.azuredevops/**' |
15 | | - - '.nuget/*' |
16 | | - - build/*.cmd |
17 | | - - build/*.json |
18 | | - - build/*.props |
19 | | - - build/*.ps1 |
20 | | - - build/*.targets |
21 | | - pull_request: |
22 | | - branches: "main" |
23 | | - paths-ignore: |
24 | | - - '*.md' |
25 | | - - LICENSE |
26 | | - - '.azuredevops/**' |
27 | | - - '.nuget/*' |
28 | | - - build/*.cmd |
29 | | - - build/*.json |
30 | | - - build/*.props |
31 | | - - build/*.ps1 |
32 | | - - build/*.targets |
33 | | - |
34 | | -permissions: |
35 | | - contents: read |
36 | | - |
37 | | -jobs: |
38 | | - build: |
39 | | - runs-on: windows-2022 |
40 | | - timeout-minutes: 20 |
41 | | - |
42 | | - strategy: |
43 | | - fail-fast: false |
44 | | - |
45 | | - matrix: |
46 | | - toolver: ['14.29', '14'] |
47 | | - build_type: [x64-Release] |
48 | | - arch: [amd64] |
49 | | - |
50 | | - steps: |
51 | | - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
52 | | - |
53 | | - - name: Clone test repository |
54 | | - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
55 | | - with: |
56 | | - repository: walbourn/directxmathtest |
57 | | - path: Tests |
58 | | - ref: main |
59 | | - |
60 | | - - name: 'Install Ninja' |
61 | | - run: choco install ninja |
62 | | - |
63 | | - - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
64 | | - with: |
65 | | - arch: ${{ matrix.arch }} |
66 | | - toolset: ${{ matrix.toolver }} |
67 | | - |
68 | | - - name: 'Configure CMake' |
69 | | - working-directory: ${{ github.workspace }} |
70 | | - run: > |
71 | | - cmake --preset=${{ matrix.build_type }} |
72 | | - -DBUILD_TESTING=ON -DENABLE_ASAN=ON |
73 | | -
|
74 | | - - name: 'Build' |
75 | | - working-directory: ${{ github.workspace }} |
76 | | - run: cmake --build out\build\${{ matrix.build_type }} |
77 | | - |
78 | | - - name: 'Run BVTs' |
79 | | - working-directory: ${{ github.workspace }} |
80 | | - run: ctest --preset=${{ matrix.build_type }} --output-on-failure |
| 1 | +# Copyright (c) Microsoft Corporation. |
| 2 | +# Licensed under the MIT License. |
| 3 | +# |
| 4 | +# http://go.microsoft.com/fwlink/?LinkId=248929 |
| 5 | + |
| 6 | +name: 'Address Sanitizer (x64)' |
| 7 | + |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: "main" |
| 11 | + paths-ignore: |
| 12 | + - '*.md' |
| 13 | + - LICENSE |
| 14 | + - '.azuredevops/**' |
| 15 | + - '.nuget/*' |
| 16 | + - build/*.cmd |
| 17 | + - build/*.json |
| 18 | + - build/*.props |
| 19 | + - build/*.ps1 |
| 20 | + - build/*.targets |
| 21 | + pull_request: |
| 22 | + branches: "main" |
| 23 | + paths-ignore: |
| 24 | + - '*.md' |
| 25 | + - LICENSE |
| 26 | + - '.azuredevops/**' |
| 27 | + - '.nuget/*' |
| 28 | + - build/*.cmd |
| 29 | + - build/*.json |
| 30 | + - build/*.props |
| 31 | + - build/*.ps1 |
| 32 | + - build/*.targets |
| 33 | + |
| 34 | +permissions: |
| 35 | + contents: read |
| 36 | + |
| 37 | +jobs: |
| 38 | + build: |
| 39 | + runs-on: windows-2022 |
| 40 | + timeout-minutes: 20 |
| 41 | + |
| 42 | + strategy: |
| 43 | + fail-fast: false |
| 44 | + |
| 45 | + matrix: |
| 46 | + toolver: ['14.29', '14'] |
| 47 | + build_type: [x64-Release] |
| 48 | + arch: [amd64] |
| 49 | + |
| 50 | + steps: |
| 51 | + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 |
| 52 | + |
| 53 | + - name: Clone test repository |
| 54 | + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 |
| 55 | + with: |
| 56 | + repository: walbourn/directxmathtest |
| 57 | + path: Tests |
| 58 | + ref: main |
| 59 | + |
| 60 | + - name: 'Install Ninja' |
| 61 | + run: choco install ninja |
| 62 | + |
| 63 | + - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
| 64 | + with: |
| 65 | + arch: ${{ matrix.arch }} |
| 66 | + toolset: ${{ matrix.toolver }} |
| 67 | + |
| 68 | + - name: 'Configure CMake' |
| 69 | + working-directory: ${{ github.workspace }} |
| 70 | + run: > |
| 71 | + cmake --preset=${{ matrix.build_type }} |
| 72 | + -DBUILD_TESTING=ON -DENABLE_ASAN=ON |
| 73 | +
|
| 74 | + - name: 'Build' |
| 75 | + working-directory: ${{ github.workspace }} |
| 76 | + run: cmake --build out\build\${{ matrix.build_type }} |
| 77 | + |
| 78 | + - name: 'Run BVTs' |
| 79 | + working-directory: ${{ github.workspace }} |
| 80 | + run: ctest --preset=${{ matrix.build_type }} --output-on-failure |
0 commit comments