Skip to content

Commit

Permalink
adding github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wathen authored Jan 7, 2021
1 parent 10fead7 commit 2bf2d8d
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ersem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This is a basic workflow to help you get started with Actions

name: build-ersem

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build-fabm-ersem:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Installing wheel and numpy
run: python -m pip install wheel numpy
- name: Cloning FABM
run: git clone https://github.com/fabm-model/fabm.git
- name: Building FABM-ERSEM
run: |
mkdir build && cd build
cmake ../fabm/src/drivers/python -DFABM_ERSEM_BASE=..
make install
- name: Check installation
run: python -c "import fabm"
build-gotm-fabm-ersem:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Installing netCDF
run: sudo apt-get install libnetcdff-dev
- name: Cloning FABM and GOTM
run: |
git clone https://github.com/fabm-model/fabm.git
git clone https://github.com/gotm-model/code.git gotm
cd gotm && git submodule update --init --recursive && cd ..
- name: Building GOTM-FABM-ERSEM
run: |
mkdir build && cd build
cmake ../gotm -DFABM_BASE=../fabm -DFABM_ERSEM_BASE=..
make install

0 comments on commit 2bf2d8d

Please sign in to comment.