Add CI for ubuntu-22.04. #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ubuntu latest CI | |
on: push | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
mpi: [ 'impi' ] | |
# mpi: [ 'mpich', 'openmpi', 'impi' ] | |
# mpich is borken on ubuntu-24.04LTS and 24.10 see https://bugs.launchpad.net/ubuntu/+source/mpich/+bug/2072338 | |
# openmpi is borken on ubuntu-24.04LTS and 24.10 see https://github.com/open-mpi/ompi/issues/10726 | |
# ubuntu 24.10 is not available as github runner, so we are left with Intel's mpi for now. | |
env: | |
FC: gfortran | |
GCC_V: 13 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
sudo apt install -y gfortran-${GCC_V} cmake | |
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} 100 | |
- name: Setup MPI ${{ matrix.mpi }} | |
uses: mpi4py/setup-mpi@v1 | |
with: | |
mpi: ${{ matrix.mpi }} | |
- name: Build and Test | |
run: | | |
mpirun --version | |
mkdir build | |
cmake -S . -B build -Wdev -DCMAKE_INSTALL_PREFIX:PATH="${HOME}/OpenCoarrays" -DCMAKE_BUILD_TYPE:STRING="Debug" .. | |
cmake --build build -j $(nproc) | |
cmake --build build -t install -j $(nproc) || echo "installation failed" | |
ctest --test-dir build --output-on-failure --schedule-random --repeat-until-fail 1 --timeout 200 | |
cd build | |
make uninstall | |
echo "Ran with mpi: ${{ matrix.mpi }}" |