1111 - uses : actions/checkout@v4
1212 with :
1313 submodules : recursive
14- - name : Add msbuild to PATH
15- uses : microsoft/setup-msbuild@v2
16- with :
17- vs-version : ' latest'
18- - name : Setup MPI
19- uses : mpi4py/setup-mpi@v1
20- with :
21- mpi : msmpi
22- - name : Setup ccache
23- uses : Chocobo1/setup-ccache-action@v1
24- with :
25- windows_compile_environment : msvc
26- - name : Setup ninja
27- uses : seanmiddleditch/gha-setup-ninja@v6
28- - name : Setup MSVC for Ninja again
29- uses : ilammy/msvc-dev-cmd@v1
14+ - uses : ./.github/actions/setup-windows-toolchain
3015 - name : CMake configure
3116 shell : bash
3217 run : >
@@ -41,13 +26,10 @@ jobs:
4126 run : |
4227 cmake --build build --target install
4328 - name : Archive installed package
44- run : Compress-Archive -Path install -DestinationPath windows-msvc-install.zip
45- shell : pwsh
46- - name : Upload installed package
47- uses : actions/upload-artifact@v4
29+ uses : ./.github/actions/archive-install
4830 with :
31+ path : install
4932 name : windows-msvc-install
50- path : windows-msvc-install.zip
5133 windows-msvc-build-debug :
5234 runs-on : windows-latest
5335 defaults :
5739 - uses : actions/checkout@v4
5840 with :
5941 submodules : recursive
60- - name : Add msbuild to PATH
61- uses : microsoft/setup-msbuild@v2
62- with :
63- vs-version : ' latest'
64- - name : Setup MPI
65- uses : mpi4py/setup-mpi@v1
66- with :
67- mpi : msmpi
68- - name : Setup ccache
69- uses : Chocobo1/setup-ccache-action@v1
70- with :
71- windows_compile_environment : msvc
72- - name : Setup ninja
73- uses : seanmiddleditch/gha-setup-ninja@v6
74- - name : Setup MSVC for Ninja again
75- uses : ilammy/msvc-dev-cmd@v1
42+ - uses : ./.github/actions/setup-windows-toolchain
7643 - name : CMake configure
7744 shell : bash
7845 run : >
@@ -87,13 +54,10 @@ jobs:
8754 run : |
8855 cmake --build build --target install
8956 - name : Archive installed package
90- run : Compress-Archive -Path install -DestinationPath windows-msvc-debug-install.zip
91- shell : pwsh
92- - name : Upload installed package
93- uses : actions/upload-artifact@v4
57+ uses : ./.github/actions/archive-install
9458 with :
59+ path : install
9560 name : windows-msvc-debug-install
96- path : windows-msvc-debug-install.zip
9761 windows-msvc-test :
9862 needs :
9963 - windows-msvc-build
@@ -103,14 +67,7 @@ jobs:
10367 shell : bash
10468 steps :
10569 - uses : actions/checkout@v4
106- - name : Add msbuild to PATH
107- uses : microsoft/setup-msbuild@v2
108- with :
109- vs-version : ' latest'
110- - name : Setup MPI
111- uses : mpi4py/setup-mpi@v1
112- with :
113- mpi : msmpi
70+ - uses : ./.github/actions/setup-windows-toolchain
11471 - name : Download installed package
11572 uses : actions/download-artifact@v4
11673 with :
@@ -167,14 +124,7 @@ jobs:
167124 shell : bash
168125 steps :
169126 - uses : actions/checkout@v4
170- - name : Add msbuild to PATH
171- uses : microsoft/setup-msbuild@v2
172- with :
173- vs-version : ' latest'
174- - name : Setup MPI
175- uses : mpi4py/setup-mpi@v1
176- with :
177- mpi : msmpi
127+ - uses : ./.github/actions/setup-windows-toolchain
178128 - name : Download installed package
179129 uses : actions/download-artifact@v4
180130 with :
@@ -211,24 +161,11 @@ jobs:
211161 - uses : actions/checkout@v4
212162 with :
213163 submodules : recursive
214- - name : Add msbuild to PATH
215- uses : microsoft/setup-msbuild@v2
216- with :
217- vs-version : ' latest'
164+ - uses : ./.github/actions/setup-windows-toolchain
218165 - name : Setup LLVM
219166 uses : KyleMayes/install-llvm-action@v2
220167 with :
221168 version : " 20.1.4"
222- - name : Setup MPI
223- uses : mpi4py/setup-mpi@v1
224- with :
225- mpi : msmpi
226- - name : Setup ccache
227- uses : Chocobo1/setup-ccache-action@v1
228- with :
229- windows_compile_environment : msvc
230- - name : Setup ninja
231- uses : seanmiddleditch/gha-setup-ninja@v6
232169 - name : CMake configure
233170 run : >
234171 cmake -S . -B build -G Ninja
@@ -249,13 +186,10 @@ jobs:
249186 run : |
250187 cmake --install build
251188 - name : Archive installed package
252- run : Compress-Archive -Path install -DestinationPath windows-clang-install.zip
253- shell : pwsh
254- - name : Upload installed package
255- uses : actions/upload-artifact@v4
189+ uses : ./.github/actions/archive-install
256190 with :
191+ path : install
257192 name : windows-clang-install
258- path : windows-clang-install.zip
259193 windows-clang-test :
260194 needs :
261195 - windows-clang-build
@@ -265,14 +199,7 @@ jobs:
265199 shell : bash
266200 steps :
267201 - uses : actions/checkout@v4
268- - name : Add msbuild to PATH
269- uses : microsoft/setup-msbuild@v2
270- with :
271- vs-version : ' latest'
272- - name : Setup MPI
273- uses : mpi4py/setup-mpi@v1
274- with :
275- mpi : msmpi
202+ - uses : ./.github/actions/setup-windows-toolchain
276203 - name : Download installed package
277204 uses : actions/download-artifact@v4
278205 with :
@@ -309,14 +236,7 @@ jobs:
309236 shell : bash
310237 steps :
311238 - uses : actions/checkout@v4
312- - name : Add msbuild to PATH
313- uses : microsoft/setup-msbuild@v2
314- with :
315- vs-version : ' latest'
316- - name : Setup MPI
317- uses : mpi4py/setup-mpi@v1
318- with :
319- mpi : msmpi
239+ - uses : ./.github/actions/setup-windows-toolchain
320240 - name : Download installed package
321241 uses : actions/download-artifact@v4
322242 with :
0 commit comments