use github actions to run additional tasks upon release creation #162
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: push | |
jobs: | |
gfortran: | |
strategy: | |
matrix: | |
version: [9, 10] | |
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 | |
ref: v6.0 | |
- 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 }} |