Skip to content

Add tests for detecting import errors when importing micro simulatiob objects #50

Add tests for detecting import errors when importing micro simulatiob objects

Add tests for detecting import errors when importing micro simulatiob objects #50

name: Build OpenMPI cache
on:
push:
branches:
- main
- develop
pull_request:
branches:
- "*"
workflow_dispatch:
jobs:
build_cache:
name: Build and cache OpenMPI 5
runs-on: ubuntu-latest
container: precice/precice:nightly
steps:
- name: Install build dependencies
run: |
apt-get -qq update
apt-get -qq install wget build-essential
- name: Load Cache OpenMPI 5
id: ompi-cache-load
uses: actions/cache/restore@v5
with:
path: ~/openmpi
key: openmpi-5.0.5-${{ runner.os }}-build
- name: Build OpenMPI 5
if: steps.ompi-cache-load.outputs.cache-hit != 'true'
run: |
wget https://download.open-mpi.org/release/open-mpi/v5.0/openmpi-5.0.5.tar.gz
tar -xzf openmpi-5.0.5.tar.gz
cd openmpi-5.0.5
mkdir -p ~/openmpi
./configure --prefix=$HOME/openmpi
make -j$(nproc)
make install
- name: Save OpenMPI 5 to cache
if: steps.ompi-cache-load.outputs.cache-hit != 'true'
uses: actions/cache/save@v5
with:
path: ~/openmpi
key: openmpi-5.0.5-${{ runner.os }}-build
- name: Verify OpenMPI installation
run: |
if [ ! -d ~/openmpi ]; then
echo "::error::OpenMPI cache directory not found"
exit 1
fi
cp -r ~/openmpi/* /usr/local/
ldconfig
mpiexec --version