Skip to content

Commit ba3c177

Browse files
authored
CI: Fix Spack Cache (#827)
Fix caching of Spack in CI.
1 parent ea3e5d7 commit ba3c177

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/dependencies/install_spack

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ set -eu -o pipefail
66
spack_ver="0.16.0"
77

88
cd /opt
9-
if [ -d spack ]; then exit 0; fi
10-
11-
# download
12-
curl -sOL https://github.com/spack/spack/archive/v${spack_ver}.tar.gz
13-
tar -xf v${spack_ver}.tar.gz && rm v${spack_ver}.tar.gz
14-
mv spack-${spack_ver} spack
9+
if [ ! -d spack ]
10+
then
11+
# download
12+
curl -sOL https://github.com/spack/spack/archive/v${spack_ver}.tar.gz
13+
tar -xf v${spack_ver}.tar.gz && rm v${spack_ver}.tar.gz
14+
mv spack-${spack_ver} spack
15+
fi
1516

1617
# install
1718
ln -s /opt/spack/bin/spack /usr/bin/spack

0 commit comments

Comments
 (0)