Skip to content

Commit 2fe4c4e

Browse files
committed
Intsall MPI environement before configuring with CMake
1 parent 26a0aee commit 2fe4c4e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,17 @@ jobs:
5454
run: |
5555
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
5656
57+
- name: Install MPI libraries on Ubuntu
58+
if: matrix.os == 'ubuntu-latest'
59+
run: |
60+
sudo apt-get update
61+
sudo apt-get install -y libopenmpi-dev openmpi-bin
62+
63+
- name: Install MPI libraries on Windows
64+
if: matrix.os == 'windows-latest'
65+
run: |
66+
choco install openmpi -y
67+
5768
- name: Configure CMake
5869
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
5970
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type

0 commit comments

Comments
 (0)