-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Wathen
authored
Jan 7, 2021
1 parent
10fead7
commit 2bf2d8d
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
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 |