Skip to content

Commit

Permalink
compress before installing, rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Dec 19, 2024
1 parent b9f4c64 commit 04c4235
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/actions/dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@ runs:
zstd -d spack.tar.zst -o spack.tar
tar xf spack.tar
rm spack.tar
git -C spack pull --rebase
- name: Compress spack directory for caching if we cloned
if: steps.cache-spack-restore.outputs.cache-hit == 'false'
shell: bash
run: |
tar cf spack.tar spack/
zstd -T0 -10 spack.tar -o spack.tar.zst
- uses: actions/cache/save@v4
with:
path: spack.tar.zst
key: ${{ env.CACHE_KEY }}-spack

- name: Install dependencies
shell: bash
Expand All @@ -49,16 +62,3 @@ runs:
echo "Without compiler"
CI/dependencies/setup.sh
fi
- name: Compress spack directory for caching
shell: bash
run: |
# Compress spack directory for caching
echo "Compressing spack directory..."
tar cf spack.tar spack/
zstd -T0 -10 spack.tar -o spack.tar.zst
- uses: actions/cache/save@v4
with:
path: spack.tar.zst
key: ${{ env.CACHE_KEY }}-spack

0 comments on commit 04c4235

Please sign in to comment.