File tree 2 files changed +44
-1
lines changed
2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change
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 }}"
Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : Ubuntu latest CI
2
2
3
3
on : push
4
4
You can’t perform that action at this time.
0 commit comments