Skip to content

Commit 6f13054

Browse files
committed
ci: windows install mpi
1 parent eaa69a8 commit 6f13054

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/cmake.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919

2020
strategy:
2121
matrix:
22-
mpi: [openmpi, mpich]
22+
mpi: [openmpi]
23+
# For some reason, mpich GitHub Actions MPIEXEC only
24+
# uses one CPU for MPICH
2325

2426
steps:
2527
- uses: actions/checkout@v4
@@ -38,7 +40,7 @@ jobs:
3840

3941

4042
windows:
41-
runs-on: windows-2025
43+
runs-on: windows-latest
4244
name: CMake build on Windows
4345
timeout-minutes: 15
4446

@@ -50,16 +52,14 @@ jobs:
5052
install: >-
5153
mingw-w64-ucrt-x86_64-gcc
5254
mingw-w64-ucrt-x86_64-gcc-fortran
53-
mingw-w64-ucrt-x86_64-msmpi
5455
5556
- name: Put MSYS2_MinGW64 on PATH
5657
run: echo "${{ steps.msys2.outputs.msys2-location }}/ucrt64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
5758

58-
- name: download MS-MPI setup (SDK is from MSYS2)
59-
run: curl -L -O https://github.com/microsoft/Microsoft-MPI/releases/download/v10.1.1/msmpisetup.exe
60-
61-
- name: Install mpiexec.exe (-force needed to bypass GUI on headless)
62-
run: .\msmpisetup.exe -unattend -force -verbose
59+
- name: Setup Microsoft MPI
60+
uses: mpi4py/setup-mpi@v1
61+
with:
62+
mpi: msmpi
6363

6464
- uses: actions/checkout@v4
6565

0 commit comments

Comments
 (0)