-
Notifications
You must be signed in to change notification settings - Fork 137
57 lines (54 loc) · 1.87 KB
/
pw_am5_intel.yaml
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
name: AM5 test
on:
push:
tags:
- '*alpha*'
- '*beta*'
pull_request:
workflow_dispatch:
# cancel running jobs if theres a newer push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
compile_AM5:
runs-on: [self-hosted, pw-platform]
strategy:
fail-fast: false
steps:
- name: Setup source and build directories
run: |
rm -rf am5_src am5_build
mkdir am5_src
mkdir am5_build
ln -s /contrib/am5/ci/am5f8d1r0/src/am5_phys am5_src/am5_phys
ln -s /contrib/am5/ci/am5f8d1r0/src/atmos_drivers am5_src/atmos_drivers
ln -s /contrib/am5/ci/am5f8d1r0/src/GFDL_atmos_cubed_sphere am5_src/GFDL_atmos_cubed_sphere
ln -s /contrib/am5/ci/am5f8d1r0/src/GRTCODE am5_src/GRTCODE
ln -s /contrib/am5/ci/am5f8d1r0/src/ice_param am5_src/ice_param
ln -s /contrib/am5/ci/am5f8d1r0/src/land_lad2 am5_src/land_lad2
ln -s /contrib/am5/ci/am5f8d1r0/src/mom6 am5_src/mom6
ln -s /contrib/am5/ci/am5f8d1r0/src/ocean_BGC am5_src/ocean_BGC
ln -s /contrib/am5/ci/am5f8d1r0/src/rte-ecckd am5_src/rte-ecckd
ln -s /contrib/am5/ci/am5f8d1r0/src/rte-rrtmgp am5_src/rte-rrtmgp
ln -s /contrib/am5/ci/am5f8d1r0/src/coupler am5_src/coupler
- name: Checkout FMS
uses: actions/checkout@v4
with:
path: am5_src/FMS
- name: Build AM5 in Intel container
run: /contrib/am5/ci/am5f8d1r0/container_build.sh
- name: Check build succeeded
run: stat ${GITHUB_WORKSPACE}/am5_build/fms_am5f8d1r0_compile.x
run_AM5:
runs-on: [self-hosted, pw-platform]
strategy:
fail-fast: false
needs: [compile_AM5]
steps:
- name: Setup run directory
run: |
cd am5_run
rm -f *.nc.* RESTART/*.nc.*
- name: Launch runscript
run: /contrib/am5/ci/am5f8d1r0/run.sh