Skip to content

Commit 21337ba

Browse files
author
Damian Rouson
authored
Merge pull request #721 from sourceryinstitute/switch-ci-to-github
Switch ci to GitHub
2 parents 2a8134d + aa19da6 commit 21337ba

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on: push
4+
5+
jobs:
6+
Build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: true
10+
11+
env:
12+
FC: gfortran
13+
GCC_V: 10
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Install Dependencies
20+
run: |
21+
sudo apt install -y gfortran-${GCC_V} cmake mpich
22+
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} 100
23+
24+
- name: Build and Test
25+
run: |
26+
mkdir build
27+
cd build
28+
cmake -Wdev -DCMAKE_INSTALL_PREFIX:PATH="${HOME}/OpenCoarrays" -DCMAKE_BUILD_TYPE:STRING="Debug" ..
29+
make -j $(nproc)
30+
ctest --output-on-failure --schedule-random --repeat-until-fail 1 --timeout 200
31+
make install
32+
make uninstall

0 commit comments

Comments
 (0)