|
1 | | -# Copyright (c) Microsoft Corporation. |
2 | | -# Licensed under the MIT License. |
3 | | -# |
4 | | -# http://go.microsoft.com/fwlink/?LinkID=615561 |
5 | | - |
6 | | -name: 'CMake (clang-cl)' |
7 | | - |
8 | | -on: |
9 | | - push: |
10 | | - branches: "main" |
11 | | - paths-ignore: |
12 | | - - '*.md' |
13 | | - - LICENSE |
14 | | - - '.azuredevops/**' |
15 | | - - '.github/*.md' |
16 | | - - '.nuget/*' |
17 | | - - build/*.cmd |
18 | | - - build/*.json |
19 | | - - build/*.props |
20 | | - - build/*.ps1 |
21 | | - - build/*.targets |
22 | | - - build/*.xvd |
23 | | - pull_request: |
24 | | - branches: "main" |
25 | | - paths-ignore: |
26 | | - - '*.md' |
27 | | - - LICENSE |
28 | | - - '.azuredevops/**' |
29 | | - - '.github/*.md' |
30 | | - - '.nuget/*' |
31 | | - - build/*.cmd |
32 | | - - build/*.json |
33 | | - - build/*.props |
34 | | - - build/*.ps1 |
35 | | - - build/*.targets |
36 | | - - build/*.xvd |
37 | | - |
38 | | -permissions: |
39 | | - contents: read |
40 | | - |
41 | | -jobs: |
42 | | - build: |
43 | | - runs-on: windows-2022 |
44 | | - |
45 | | - strategy: |
46 | | - fail-fast: false |
47 | | - |
48 | | - matrix: |
49 | | - build_type: [x64-Debug-Clang, x64-Release-Clang] |
50 | | - arch: [amd64] |
51 | | - include: |
52 | | - - build_type: x64-Debug-Clang |
53 | | - arch: amd64 |
54 | | - - build_type: x64-Release-Clang |
55 | | - arch: amd64 |
56 | | - - build_type: x86-Debug-Clang |
57 | | - arch: amd64_x86 |
58 | | - - build_type: x86-Release-Clang |
59 | | - arch: amd64_x86 |
60 | | - - build_type: arm64-Debug-Clang |
61 | | - arch: amd64_arm64 |
62 | | - - build_type: arm64-Release-Clang |
63 | | - arch: amd64_arm64 |
64 | | - |
65 | | - steps: |
66 | | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
67 | | - |
68 | | - - name: Clone test repository |
69 | | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
70 | | - with: |
71 | | - repository: walbourn/directxtk12test |
72 | | - path: Tests |
73 | | - ref: main |
74 | | - |
75 | | - - name: 'Install Ninja' |
76 | | - run: choco install ninja |
77 | | - |
78 | | - - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
79 | | - with: |
80 | | - arch: ${{ matrix.arch }} |
81 | | - |
82 | | - - name: 'Configure CMake' |
83 | | - working-directory: ${{ github.workspace }} |
84 | | - run: cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON |
85 | | - |
86 | | - - name: 'Build' |
87 | | - working-directory: ${{ github.workspace }} |
88 | | - run: cmake --build out\build\${{ matrix.build_type }} |
89 | | - |
90 | | - - name: 'Clean up' |
91 | | - working-directory: ${{ github.workspace }} |
92 | | - run: Remove-Item -Path out -Recurse -Force |
93 | | - |
94 | | - - name: 'Configure CMake (DLL)' |
95 | | - working-directory: ${{ github.workspace }} |
96 | | - run: > |
97 | | - cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON |
98 | | - -DBUILD_SHARED_LIBS=ON |
99 | | -
|
100 | | - - name: 'Build (DLL)' |
101 | | - working-directory: ${{ github.workspace }} |
102 | | - run: cmake --build out\build\${{ matrix.build_type }} |
103 | | - |
104 | | - build2026: |
105 | | - runs-on: windows-2025-vs2026 |
106 | | - |
107 | | - strategy: |
108 | | - fail-fast: false |
109 | | - |
110 | | - matrix: |
111 | | - build_type: [x64-Debug-Clang, x64-Release-Clang] |
112 | | - arch: [amd64] |
113 | | - include: |
114 | | - - build_type: x86-Debug-Clang |
115 | | - arch: amd64_x86 |
116 | | - - build_type: x86-Release-Clang |
117 | | - arch: amd64_x86 |
118 | | - - build_type: arm64-Debug-Clang |
119 | | - arch: amd64_arm64 |
120 | | - - build_type: arm64-Release-Clang |
121 | | - arch: amd64_arm64 |
122 | | - |
123 | | - steps: |
124 | | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
125 | | - |
126 | | - - name: 'Install Ninja' |
127 | | - run: choco install ninja |
128 | | - |
129 | | - - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
130 | | - with: |
131 | | - arch: ${{ matrix.arch }} |
132 | | - |
133 | | - - name: 'Configure CMake' |
134 | | - working-directory: ${{ github.workspace }} |
135 | | - run: cmake --preset=${{ matrix.build_type }} |
136 | | - |
137 | | - - name: 'Build' |
138 | | - working-directory: ${{ github.workspace }} |
139 | | - run: cmake --build out\build\${{ matrix.build_type }} |
140 | | - |
141 | | - - name: 'Clean up' |
142 | | - working-directory: ${{ github.workspace }} |
143 | | - run: Remove-Item -Path out -Recurse -Force |
144 | | - |
145 | | - - name: 'Configure CMake (DLL)' |
146 | | - working-directory: ${{ github.workspace }} |
147 | | - run: cmake --preset=${{ matrix.build_type }} -DBUILD_SHARED_LIBS=ON |
148 | | - |
149 | | - - name: 'Build (DLL)' |
150 | | - working-directory: ${{ github.workspace }} |
151 | | - 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=615561 |
| 5 | + |
| 6 | +name: 'CMake (clang-cl)' |
| 7 | + |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: "main" |
| 11 | + paths-ignore: |
| 12 | + - '*.md' |
| 13 | + - LICENSE |
| 14 | + - '.azuredevops/**' |
| 15 | + - '.github/*.md' |
| 16 | + - '.nuget/*' |
| 17 | + - build/*.cmd |
| 18 | + - build/*.json |
| 19 | + - build/*.props |
| 20 | + - build/*.ps1 |
| 21 | + - build/*.targets |
| 22 | + - build/*.xvd |
| 23 | + pull_request: |
| 24 | + branches: "main" |
| 25 | + paths-ignore: |
| 26 | + - '*.md' |
| 27 | + - LICENSE |
| 28 | + - '.azuredevops/**' |
| 29 | + - '.github/*.md' |
| 30 | + - '.nuget/*' |
| 31 | + - build/*.cmd |
| 32 | + - build/*.json |
| 33 | + - build/*.props |
| 34 | + - build/*.ps1 |
| 35 | + - build/*.targets |
| 36 | + - build/*.xvd |
| 37 | + |
| 38 | +permissions: |
| 39 | + contents: read |
| 40 | + |
| 41 | +jobs: |
| 42 | + build: |
| 43 | + runs-on: windows-2022 |
| 44 | + |
| 45 | + strategy: |
| 46 | + fail-fast: false |
| 47 | + |
| 48 | + matrix: |
| 49 | + build_type: [x64-Debug-Clang, x64-Release-Clang] |
| 50 | + arch: [amd64] |
| 51 | + include: |
| 52 | + - build_type: x64-Debug-Clang |
| 53 | + arch: amd64 |
| 54 | + - build_type: x64-Release-Clang |
| 55 | + arch: amd64 |
| 56 | + - build_type: x86-Debug-Clang |
| 57 | + arch: amd64_x86 |
| 58 | + - build_type: x86-Release-Clang |
| 59 | + arch: amd64_x86 |
| 60 | + - build_type: arm64-Debug-Clang |
| 61 | + arch: amd64_arm64 |
| 62 | + - build_type: arm64-Release-Clang |
| 63 | + arch: amd64_arm64 |
| 64 | + |
| 65 | + steps: |
| 66 | + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| 67 | + |
| 68 | + - name: Clone test repository |
| 69 | + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| 70 | + with: |
| 71 | + repository: walbourn/directxtk12test |
| 72 | + path: Tests |
| 73 | + ref: main |
| 74 | + |
| 75 | + - name: 'Install Ninja' |
| 76 | + run: choco install ninja |
| 77 | + |
| 78 | + - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
| 79 | + with: |
| 80 | + arch: ${{ matrix.arch }} |
| 81 | + |
| 82 | + - name: 'Configure CMake' |
| 83 | + working-directory: ${{ github.workspace }} |
| 84 | + run: cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON |
| 85 | + |
| 86 | + - name: 'Build' |
| 87 | + working-directory: ${{ github.workspace }} |
| 88 | + run: cmake --build out\build\${{ matrix.build_type }} |
| 89 | + |
| 90 | + - name: 'Clean up' |
| 91 | + working-directory: ${{ github.workspace }} |
| 92 | + run: Remove-Item -Path out -Recurse -Force |
| 93 | + |
| 94 | + - name: 'Configure CMake (DLL)' |
| 95 | + working-directory: ${{ github.workspace }} |
| 96 | + run: > |
| 97 | + cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON |
| 98 | + -DBUILD_SHARED_LIBS=ON |
| 99 | +
|
| 100 | + - name: 'Build (DLL)' |
| 101 | + working-directory: ${{ github.workspace }} |
| 102 | + run: cmake --build out\build\${{ matrix.build_type }} |
| 103 | + |
| 104 | + build2026: |
| 105 | + runs-on: windows-2025-vs2026 |
| 106 | + |
| 107 | + strategy: |
| 108 | + fail-fast: false |
| 109 | + |
| 110 | + matrix: |
| 111 | + build_type: [x64-Debug-Clang, x64-Release-Clang] |
| 112 | + arch: [amd64] |
| 113 | + include: |
| 114 | + - build_type: x86-Debug-Clang |
| 115 | + arch: amd64_x86 |
| 116 | + - build_type: x86-Release-Clang |
| 117 | + arch: amd64_x86 |
| 118 | + - build_type: arm64-Debug-Clang |
| 119 | + arch: amd64_arm64 |
| 120 | + - build_type: arm64-Release-Clang |
| 121 | + arch: amd64_arm64 |
| 122 | + |
| 123 | + steps: |
| 124 | + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| 125 | + |
| 126 | + - name: 'Install Ninja' |
| 127 | + run: choco install ninja |
| 128 | + |
| 129 | + - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
| 130 | + with: |
| 131 | + arch: ${{ matrix.arch }} |
| 132 | + |
| 133 | + - name: 'Configure CMake' |
| 134 | + working-directory: ${{ github.workspace }} |
| 135 | + run: cmake --preset=${{ matrix.build_type }} |
| 136 | + |
| 137 | + - name: 'Build' |
| 138 | + working-directory: ${{ github.workspace }} |
| 139 | + run: cmake --build out\build\${{ matrix.build_type }} |
| 140 | + |
| 141 | + - name: 'Clean up' |
| 142 | + working-directory: ${{ github.workspace }} |
| 143 | + run: Remove-Item -Path out -Recurse -Force |
| 144 | + |
| 145 | + - name: 'Configure CMake (DLL)' |
| 146 | + working-directory: ${{ github.workspace }} |
| 147 | + run: cmake --preset=${{ matrix.build_type }} -DBUILD_SHARED_LIBS=ON |
| 148 | + |
| 149 | + - name: 'Build (DLL)' |
| 150 | + working-directory: ${{ github.workspace }} |
| 151 | + run: cmake --build out\build\${{ matrix.build_type }} |
0 commit comments