Skip to content

Commit

Permalink
Changes to keep directories from older runs
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored Dec 4, 2024
1 parent 5efb5f6 commit 7261f5e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/pw_am5_intel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
steps:
- name: Setup source and build directories
run: |
rm -rf am5_src am5_build
mkdir ${GITHUB_SHA}
cd ${GITHUB_SHA}
mkdir am5_src
mkdir am5_build
ln -s /contrib/am5/ci/latest/src/am5_phys am5_src/am5_phys
Expand All @@ -37,21 +38,21 @@ jobs:
- name: Checkout FMS
uses: actions/checkout@v4
with:
path: am5_src/FMS
path: ${{github.sha}}/am5_src/FMS
- name: Build AM5 in Intel container
run: /contrib/am5/ci/latest/container_build.sh
- name: Check build succeeded
run: stat ${GITHUB_WORKSPACE}/am5_build/fms_am5*_compile.x
run: stat ${GITHUB_WORKSPACE}/${GITHUB_SHA}/am5_build/fms_am5*_compile.x

run_AM5:
runs-on: [self-hosted, pw-platform]
strategy:
fail-fast: false
needs: [compile_AM5]
steps:
- name: Setup run directory
- name: Create run directory
run: |
cd am5_run
rm -f *.nc.* RESTART/*.nc.*
cd ${GITHUB_SHA}
mkdir am5_run
- name: Launch runscript
run: /contrib/am5/ci/latest/run.sh

0 comments on commit 7261f5e

Please sign in to comment.