-
Notifications
You must be signed in to change notification settings - Fork 47
35 lines (35 loc) · 1.13 KB
/
gotm.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
33
34
35
name: Build and test
on: push
jobs:
gfortran:
strategy:
matrix:
version: [9, 10, 11]
os: [ubuntu-latest]
include:
- version: 6
os: ubuntu-18.04
- version: 7
os: ubuntu-20.04
- version: 8
os: ubuntu-20.04
cmake_args: -DFABM_USE_CONTIGUOUS=OFF
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Install compiler
run: |
sudo apt-get update
sudo apt-get install gfortran-${{ matrix.version }}
- name: Clone gotm
uses: actions/checkout@v2
with:
path: gotm
submodules: recursive
- name: Clone gotm-cases
uses: actions/checkout@v2
with:
path: cases
repository: gotm-model/cases
- name: Build and run all test cases
run: python3 cases/scripts/run_all.py --show_logs --gotm_base=gotm --exclude plume --compiler=gfortran-${{ matrix.version }} -DGOTM_USE_STIM=ON -DGOTM_USE_SEAGRASS=ON -DGOTM_USE_NetCDF=OFF ${{ matrix.cmake_args }}