|
1 | | -# Copyright (c) Microsoft Corporation. |
2 | | -# Licensed under the MIT License. |
3 | | -# |
4 | | -# http://go.microsoft.com/fwlink/?LinkID=615560 |
5 | | - |
6 | | -name: 'CMake (MinGW)' |
7 | | - |
8 | | -on: |
9 | | - push: |
10 | | - branches: "main" |
11 | | - paths-ignore: |
12 | | - - '*.md' |
13 | | - - LICENSE |
14 | | - - '.azuredevops/**' |
15 | | - - '.github/*.md' |
16 | | - - '.nuget/*' |
17 | | - - build/*.ps1 |
18 | | - pull_request: |
19 | | - branches: "main" |
20 | | - paths-ignore: |
21 | | - - '*.md' |
22 | | - - LICENSE |
23 | | - - '.azuredevops/**' |
24 | | - - '.github/*.md' |
25 | | - - '.nuget/*' |
26 | | - - build/*.ps1 |
27 | | - |
28 | | -permissions: |
29 | | - contents: read |
30 | | - |
31 | | -jobs: |
32 | | - build: |
33 | | - timeout-minutes: 20 |
34 | | - |
35 | | - strategy: |
36 | | - fail-fast: false |
37 | | - |
38 | | - matrix: |
39 | | - build_type: [x64-Debug-MinGW, x64-Release-MinGW] |
40 | | - os: [windows-2022, windows-2025] |
41 | | - |
42 | | - runs-on: ${{ matrix.os }} |
43 | | - |
44 | | - steps: |
45 | | - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
46 | | - |
47 | | - - name: Clone test repository |
48 | | - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
49 | | - with: |
50 | | - repository: walbourn/directxmathtest |
51 | | - path: Tests |
52 | | - ref: main |
53 | | - |
54 | | - - name: 'Install Ninja' |
55 | | - run: choco install ninja |
56 | | - |
57 | | - - name: 'Configure CMake' |
58 | | - working-directory: ${{ github.workspace }} |
59 | | - run: cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON |
60 | | - |
61 | | - - name: 'Build' |
62 | | - working-directory: ${{ github.workspace }} |
63 | | - run: cmake --build out/build/${{ matrix.build_type }} |
| 1 | +# Copyright (c) Microsoft Corporation. |
| 2 | +# Licensed under the MIT License. |
| 3 | +# |
| 4 | +# http://go.microsoft.com/fwlink/?LinkID=615560 |
| 5 | + |
| 6 | +name: 'CMake (MinGW)' |
| 7 | + |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: "main" |
| 11 | + paths-ignore: |
| 12 | + - '*.md' |
| 13 | + - LICENSE |
| 14 | + - '.azuredevops/**' |
| 15 | + - '.github/*.md' |
| 16 | + - '.nuget/*' |
| 17 | + - build/*.ps1 |
| 18 | + pull_request: |
| 19 | + branches: "main" |
| 20 | + paths-ignore: |
| 21 | + - '*.md' |
| 22 | + - LICENSE |
| 23 | + - '.azuredevops/**' |
| 24 | + - '.github/*.md' |
| 25 | + - '.nuget/*' |
| 26 | + - build/*.ps1 |
| 27 | + |
| 28 | +permissions: |
| 29 | + contents: read |
| 30 | + |
| 31 | +jobs: |
| 32 | + build: |
| 33 | + timeout-minutes: 20 |
| 34 | + |
| 35 | + strategy: |
| 36 | + fail-fast: false |
| 37 | + |
| 38 | + matrix: |
| 39 | + build_type: [x64-Debug-MinGW, x64-Release-MinGW] |
| 40 | + os: [windows-2022, windows-2025] |
| 41 | + |
| 42 | + runs-on: ${{ matrix.os }} |
| 43 | + |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 46 | + |
| 47 | + - name: Clone test repository |
| 48 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 49 | + with: |
| 50 | + repository: walbourn/directxmathtest |
| 51 | + path: Tests |
| 52 | + ref: main |
| 53 | + |
| 54 | + - name: 'Install Ninja' |
| 55 | + run: choco install ninja |
| 56 | + |
| 57 | + - name: 'Configure CMake' |
| 58 | + working-directory: ${{ github.workspace }} |
| 59 | + run: cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON |
| 60 | + |
| 61 | + - name: 'Build' |
| 62 | + working-directory: ${{ github.workspace }} |
| 63 | + run: cmake --build out/build/${{ matrix.build_type }} |
0 commit comments