Skip to content

Commit 8ab1fff

Browse files
committed
Add CI for ubuntu-22.04.
1 parent 6e77eb8 commit 8ab1fff

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/workflows/ci-ubuntu-22.04.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on: push
4+
5+
jobs:
6+
Build:
7+
runs-on: ubuntu-22.04
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
mpi: [ 'mpich', 'openmpi', 'impi' ]
12+
13+
env:
14+
FC: gfortran
15+
GCC_V: 11
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
21+
- name: Install Dependencies
22+
run: |
23+
sudo apt install -y gfortran-${GCC_V} cmake
24+
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} 100
25+
26+
- name: Setup MPI ${{ matrix.mpi }}
27+
uses: mpi4py/setup-mpi@v1
28+
with:
29+
mpi: ${{ matrix.mpi }}
30+
31+
- name: Build and Test
32+
run: |
33+
mpirun --version
34+
mkdir build
35+
cmake -S . -B build -Wdev -DCMAKE_INSTALL_PREFIX:PATH="${HOME}/OpenCoarrays" -DCMAKE_BUILD_TYPE:STRING="Debug" ..
36+
cmake --build build -j $(nproc)
37+
cmake --build build -t install -j $(nproc) || echo "installation failed"
38+
ctest --test-dir build --output-on-failure --schedule-random --repeat-until-fail 1 --timeout 200
39+
cd build
40+
make uninstall
41+
echo "Ran with mpi: ${{ matrix.mpi }}"

.github/workflows/ci.yml .github/workflows/ci-ubuntu-latest.yml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
mpi: [ 'impi' ]
12-
# mpi: [ 'mpich', 'openmpi', 'impi' ]
1312
# mpich is borken on ubuntu-24.04LTS and 24.10 see https://bugs.launchpad.net/ubuntu/+source/mpich/+bug/2072338
1413
# openmpi is borken on ubuntu-24.04LTS and 24.10 see https://github.com/open-mpi/ompi/issues/10726
1514
# ubuntu 24.10 is not available as github runner, so we are left with Intel's mpi for now.

0 commit comments

Comments
 (0)