-
-
Notifications
You must be signed in to change notification settings - Fork 55
32 lines (26 loc) · 868 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: CI
on: push
jobs:
Build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
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 mpich
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} 100
- name: Build and Test
run: |
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