chore: remove outdated am4 ci workflow (#1639)
[FMS.git] / .github / workflows / pw_am5_intel.yaml
blob10583f702109de096d981448eeb10c7fb3846cb9
1 name: AM5 test
2 on:
3   push:
4     tags:
5       - '*alpha*'
6       - '*beta*'
7   pull_request:
8   workflow_dispatch:
10 # cancel running jobs if theres a newer push
11 concurrency:
12   group: ${{ github.workflow }}-${{ github.ref }}
13   cancel-in-progress: true
15 jobs:
16   compile_AM5:
17     runs-on: [self-hosted, pw-platform]
18     strategy:
19       fail-fast: false
20     steps:
21     - name: Setup source and build directories
22       run: |
23         mkdir -p ${GITHUB_SHA}
24         cd ${GITHUB_SHA}
25         mkdir -p am5_src
26         mkdir -p am5_build
27         ln -s /contrib/am5/ci/latest/src/am5_phys am5_src/am5_phys
28         ln -s /contrib/am5/ci/latest/src/atmos_drivers am5_src/atmos_drivers
29         ln -s /contrib/am5/ci/latest/src/GFDL_atmos_cubed_sphere am5_src/GFDL_atmos_cubed_sphere
30         ln -s /contrib/am5/ci/latest/src/GRTCODE am5_src/GRTCODE
31         ln -s /contrib/am5/ci/latest/src/ice_param am5_src/ice_param
32         ln -s /contrib/am5/ci/latest/src/land_lad2 am5_src/land_lad2
33         ln -s /contrib/am5/ci/latest/src/mom6 am5_src/mom6
34         ln -s /contrib/am5/ci/latest/src/ocean_BGC am5_src/ocean_BGC
35         ln -s /contrib/am5/ci/latest/src/rte-ecckd am5_src/rte-ecckd
36         ln -s /contrib/am5/ci/latest/src/rte-rrtmgp am5_src/rte-rrtmgp
37         ln -s /contrib/am5/ci/latest/src/coupler am5_src/coupler
38     - name: Checkout FMS
39       uses: actions/checkout@v4
40       with:
41         path: ${{github.sha}}/am5_src/FMS
42     - name: Build AM5 in Intel container
43       run: /contrib/am5/ci/latest/container_build.sh
44     - name: Check build succeeded
45       run: stat ${GITHUB_WORKSPACE}/${GITHUB_SHA}/am5_build/fms_am5*_compile.x
47   run_AM5:
48     runs-on: [self-hosted, pw-platform]
49     strategy:
50       fail-fast: false
51     needs: [compile_AM5]
52     steps:
53       - name: Create run directory
54         run: |
55           cd ${GITHUB_SHA}
56           mkdir -p am5_run
57       - name: Launch runscript
58         run: /contrib/am5/ci/latest/run.sh