Skip to content

Commit

Permalink
update checkout version and clean after success (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerorahul authored Apr 26, 2023
1 parent ef2d9ae commit fa37037
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build_intel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
sudo python3 -m pip install -U netCDF4
- name: Get sources
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: hpc-stack

Expand All @@ -62,10 +62,16 @@ jobs:
export HPC_PYTHON="python/${python_ver}"
yes | ./setup_modules.sh -c config/config_custom.sh -p $prefix
./build_stack.sh -p $prefix -c config/config_custom.sh -y stack/stack_custom.yaml -m
- name: Upload logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: intel-log
path: intel/log

- name: Clean disk space of downloaded packages
if: ${{ success() }}
run: |
cd hpc-stack
rm -rf pkg
8 changes: 7 additions & 1 deletion .github/workflows/build_macOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
sudo ln -s /usr/local/Cellar/[email protected]/$ssl_ver/lib/libcrypto.1.1.dylib /usr/local/lib/libcrypto.dylib
- name: Get sources
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: ${{ matrix.compiler }}-${{ matrix.mpi }}

Expand Down Expand Up @@ -62,3 +62,9 @@ jobs:
with:
name: ${{ matrix.compiler }}-${{ matrix.mpi }}-log
path: ${{ matrix.compiler }}-${{ matrix.mpi }}/log

- name: Clean disk space of downloaded packages
if: ${{ success() }}
run: |
cd ${{ matrix.compiler }}-${{ matrix.mpi }}
rm -rf pkg
8 changes: 7 additions & 1 deletion .github/workflows/build_ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
sudo python3 -m pip install -U netCDF4
- name: Get sources
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: ${{ matrix.mpi }}

Expand All @@ -77,3 +77,9 @@ jobs:
with:
name: ${{ matrix.mpi }}-log
path: ${{ matrix.mpi }}/log

- name: Clean disk space of downloaded packages
if: ${{ success() }}
run: |
cd ${{ matrix.mpi }}
rm -rf pkg
8 changes: 7 additions & 1 deletion .github/workflows/test_download_only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:

- name: Get sources
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: hpc-stack

Expand All @@ -23,3 +23,9 @@ jobs:
prefix=$GITHUB_WORKSPACE/install
sed -i "s/install_fix: YES/install_fix: NO/" stack/stack_noaa.yaml
./build_stack.sh -p $prefix -c config/config_custom.sh -y stack/stack_noaa.yaml
- name: Clean disk space of downloaded packages
if: ${{ success() }}
run: |
cd hpc-stack
rm -rf pkg

0 comments on commit fa37037

Please sign in to comment.