From 7261f5e6431178b558eb309985eb613107855334 Mon Sep 17 00:00:00 2001 From: Ryan Mulhall <35538242+rem1776@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:32:54 -0500 Subject: [PATCH] Changes to keep directories from older runs --- .github/workflows/pw_am5_intel.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pw_am5_intel.yaml b/.github/workflows/pw_am5_intel.yaml index 1e336351b..e061f6aab 100644 --- a/.github/workflows/pw_am5_intel.yaml +++ b/.github/workflows/pw_am5_intel.yaml @@ -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 @@ -37,11 +38,11 @@ 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] @@ -49,9 +50,9 @@ jobs: 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