Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OxyPOM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ElbeXtreme
OxyPOM
Commits
f8bf4a19
Commit
f8bf4a19
authored
1 month ago
by
Carsten Lemmen
Browse files
Options
Downloads
Patches
Plain Diff
Added gotm workflow (WIP)
parent
574a4946
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/gotm.yaml
+63
-0
63 additions, 0 deletions
.github/workflows/gotm.yaml
with
63 additions
and
0 deletions
.github/workflows/gotm.yaml
0 → 100644
+
63
−
0
View file @
f8bf4a19
name
:
Build and test
on
:
push
jobs
:
gfortran
:
strategy
:
matrix
:
version
:
[
14
]
os
:
[
"
ubuntu-latest"
]
include
:
-
version
:
14
os
:
ubuntu-24.04
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 (including fabm)
uses
:
actions/checkout@v4
with
:
repository
:
gotm-model/code
path
:
gotm
submodules
:
recursive
-
name
:
Clone fabm-oxypom
uses
:
actions/checkout@v4
with
:
path
:
fabm-oxypom
-
name
:
Build gotm with fabm and oxypom
run
:
|
cmake -B gotm/build -S gotm/src -DCMAKE_Fortran_COMPILER=${{ matrix.f_compiler }} -DGOTM_USE_FABM=ON -DGOTM_USE_NetCDF=OFF ${{ matrix.cmake_args }}
conda-forge
:
strategy
:
fail-fast
:
false
matrix
:
os
:
[
"
ubuntu-latest"
,
"
macos-latest"
,
"
windows-latest"
]
defaults
:
run
:
shell
:
bash -el {0}
runs-on
:
${{ matrix.os }}
steps
:
-
uses
:
conda-incubator/setup-miniconda@v3
with
:
auto-update-conda
:
true
-
name
:
Clone gotm
uses
:
actions/checkout@v4
with
:
submodules
:
recursive
repository
:
gotm-model/code
-
name
:
Install conda packages (Linux, Mac)
if
:
matrix.os != 'windows-latest'
run
:
conda install -c conda-forge fortran-compiler netcdf-fortran
-
name
:
Install conda packages (Windows)
if
:
matrix.os == 'windows-latest'
run
:
|
conda install -c conda-forge m2w64-gcc-fortran m2w64-make netcdf-fortran
echo "CMAKE_GENERATOR=MinGW Makefiles" >> "$GITHUB_ENV"
-
name
:
build
run
:
|
cmake -B build -S . -DGOTM_USE_STIM=ON -DGOTM_USE_SEAGRASS=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment