Skip to content

Commit 9ed424b

Browse files
committed
ci: windows check mpiexec
1 parent 7202506 commit 9ed424b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/cmake.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- name: install prereqs (linux)
2828
if: runner.os == 'Linux'
29-
run: sudo apt -yq install --no-install-recommends lib${{ matrix.mpi }}-dev
29+
run: sudo apt install --no-install-recommends lib${{ matrix.mpi }}-dev
3030

3131
- name: install prereqs (mac)
3232
if: runner.os == 'macOS'
@@ -61,9 +61,8 @@ jobs:
6161
- name: Install mpiexec.exe (-force needed to bypass GUI on headless)
6262
run: .\msmpisetup.exe -unattend -force
6363

64-
- name: test that mpiexec.exe exists
65-
# can't use MSMPI_BIN as Actions doesn't update PATH from msmpisetup.exe
66-
run: Test-Path "C:\Program Files\Microsoft MPI\Bin\mpiexec.exe" -PathType leaf
64+
- name: Assert file existence
65+
run: if (-not (Test-Path -Path "C:\Program Files\Microsoft MPI\Bin\mpiexec.exe" -PathType Leaf)) { exit 1 }
6766

6867
- name: put MSMPI_BIN on PATH (where mpiexec is)
6968
run: echo "C:\Program Files\Microsoft MPI\Bin\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

0 commit comments

Comments
 (0)