Skip to content

Commit

Permalink
Add openmpi install to CI (#551)
Browse files Browse the repository at this point in the history
This PR adds to the CCPP Prebuild CI test to install open-mpi v4.1.6, which is now a requirement for CCPP.

---------

Co-authored-by: dustinswales <dswales@ucar.edu>
  • Loading branch information
dustinswales and dustinswales authored Mar 27, 2024
1 parent 011db4f commit 0f416a2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/prebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ jobs:
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install open mpi
run: |
wget https://github.com/open-mpi/ompi/archive/refs/tags/v4.1.6.tar.gz
tar -xvf v4.1.6.tar.gz
cd ompi-4.1.6
./autogen.pl
./configure --prefix=/home/runner/ompi-4.1.6
make -j4
make install
echo "LD_LIBRARY_PATH=/home/runner/ompi-4.1.6/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
echo "PATH=/home/runner/ompi-4.1.6/bin:$PATH" >> $GITHUB_ENV
- name: ccpp-prebuild unit tests
run: |
export PYTHONPATH=$(pwd)/scripts:$(pwd)/scripts/parse_tools
Expand Down

0 comments on commit 0f416a2

Please sign in to comment.