Skip to content

Commit

Permalink
Add CI for ubuntu-22.04.
Browse files Browse the repository at this point in the history
  • Loading branch information
vehre committed Feb 12, 2025
1 parent 6e77eb8 commit 8ab1fff
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/ci-ubuntu-22.04.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on: push

jobs:
Build:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
mpi: [ 'mpich', 'openmpi', 'impi' ]

env:
FC: gfortran
GCC_V: 11

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 }}"
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
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.
Expand Down

0 comments on commit 8ab1fff

Please sign in to comment.