-
Notifications
You must be signed in to change notification settings - Fork 3
88 lines (74 loc) · 3.01 KB
/
build_gfortran.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: build_gfortran
on:
push:
pull_request:
env:
BUILD_TYPE: Debug
jobs:
cmake_build:
strategy:
matrix:
model: [mom6]
fail-fast: false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: "install mpi, netcdf, hdf5"
run: |
sudo apt-get update
sudo apt install mpich
sudo apt install libnetcdf-dev libnetcdff-dev netcdf-bin
sudo apt install hdf5-tools libhdf5-dev
- name: "check version and envs"
run: |
echo "===============================" && nf-config --all
echo "===============================" && nc-config --all
echo "===============================" && h5fc -showconfig && h5fc -show test.f90
echo "===============================" && gcc -v
echo "===============================" && gfortran -v
echo "===============================" && mpif90 -v
echo "===============================" && ulimit -a
echo "===============================" && pwd
- name: "cmake build for each model"
run: |
echo "===================================="
echo "cmake build for ${{matrix.model}}"
echo ""
echo "===================================="
cmake -B ${{github.workspace}}/build_ocnletkf -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_Fortran_COMPILER=gfortran -DSOLO_BUILD=ON -DMODEL=${{matrix.model}}
cmake --build ${{github.workspace}}/build_ocnletkf --config ${{env.BUILD_TYPE}}
sh_build:
strategy:
matrix:
model: [mom6_dynamic, mom6, mom4, roms, nemo, cice5, sis, hycom, hycom_nrl]
fail-fast: false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: "install mpi, netcdf, hdf5"
run: |
sudo apt-get update
sudo apt install mpich
sudo apt install libnetcdf-dev libnetcdff-dev netcdf-bin
sudo apt install hdf5-tools libhdf5-dev
- name: "check version and envs"
run: |
echo "===============================" && nf-config --all
echo "===============================" && nc-config --all
echo "===============================" && h5fc -showconfig && h5fc -show test.f90
echo "===============================" && gcc -v
echo "===============================" && gfortran -v
echo "===============================" && mpif90 -v
echo "===============================" && ulimit -a
echo "===============================" && pwd
- name: "build/make_*.sh for model"
run: |
echo "===================================="
echo "build/make_*.sh for ${{matrix.model}}"
echo ""
echo "===================================="
cd ${{github.workspace}}/build && pwd
rm -rf build_letkf/*
rm -rf build_obsop/*
bash -xe make_obsop.${{matrix.model}}.sh
bash -xe make_letkf.${{matrix.model}}.sh