Skip to content

Commit f8988a0

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

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

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

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Ubuntu 22.04 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', 'impi' ]
12+
# mpi: [ 'mpich', 'openmpi', 'impi' ]
13+
# openmpi is borken on ubuntu-22.04 and above see https://github.com/open-mpi/ompi/issues/10726
14+
15+
env:
16+
FC: gfortran
17+
GCC_V: 11
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v3
22+
23+
- name: Install Dependencies
24+
run: |
25+
sudo apt install -y gfortran-${GCC_V} cmake
26+
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} 100
27+
28+
- name: Setup MPI ${{ matrix.mpi }}
29+
uses: mpi4py/setup-mpi@v1
30+
with:
31+
mpi: ${{ matrix.mpi }}
32+
33+
- name: Build and Test
34+
run: |
35+
mpirun --version
36+
mkdir build
37+
cmake -S . -B build -Wdev -DCMAKE_INSTALL_PREFIX:PATH="${HOME}/OpenCoarrays" -DCMAKE_BUILD_TYPE:STRING="Debug" ..
38+
cmake --build build -j $(nproc)
39+
cmake --build build -t install -j $(nproc) || echo "installation failed"
40+
ctest --test-dir build --output-on-failure --schedule-random --repeat-until-fail 1 --timeout 200
41+
cd build
42+
make uninstall
43+
echo "Ran with mpi: ${{ matrix.mpi }}"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Ubuntu latest CI
22

33
on: push
44

0 commit comments

Comments
 (0)