forked from mom-ocean/MOM5
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.29 KB
/
CMake.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
name: CMake
on: [workflow_dispatch]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04 ]
# gcc_v: [8, 9] # Version of GFortran we want to use.
TYPE:
- MOM5_solo
- MOM5_SIS
- MOM5_CM2M
- MOM5_ESM2M
- MOM5_ICCM
runs-on: ${{ matrix.os }}
env:
# FC: gfortran-${{ matrix.gcc_v }}
# OMPI_FC: gfortran-${{ matrix.gcc_v }}
# GCC_V: ${{ matrix.gcc_v }}
FC: gfortran
OMPI_FC: gfortran
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -yqq install csh gfortran libgomp1 openmpi-bin libopenmpi-dev libnetcdf-dev libnetcdff-dev netcdf-bin
- name: Determing OS version
uses: kenchan0130/actions-system-info@master
id: system-info
- name: Set OS version
run: |
echo "Release: ${{ steps.system-info.outputs.release }}"
echo "os_version=${{ steps.system-info.outputs.release }}" >> $GITHUB_ENV
- name: Determine netCDF build options
run: |
nc-config --all
- name: Compile
working-directory: ./exp
run: |
# env
./cmake_compile.csh --target ${{ matrix.TYPE }}