Skip to content

Commit cb1f0cf

Browse files
author
Damian Rouson
authored
Merge pull request #5 from sourceryinstitute/ci-test
test(CI): add GitHub CI testing
2 parents 211f803 + cd25c7c commit cb1f0cf

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/CI.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on: [push, pull_request]
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+
git clone https://github.com/sourceryinstitute/opencoarrays
24+
mkdir -p opencoarrays/build
25+
cd opencoarrays/build
26+
cmake ..
27+
sudo make -j $(nproc) install
28+
cd -
29+
git clone https://github.com/fortran-lang/fpm
30+
cd fpm
31+
./install.sh
32+
33+
- name: Build and Test
34+
run: |
35+
export PATH="${HOME}/.local/bin:$PATH"
36+
fpm test --compiler caf --runner "cafrun -n 4"

0 commit comments

Comments
 (0)