Skip to content

Commit

Permalink
Setup build cache after concretisation (#26)
Browse files Browse the repository at this point in the history
As it changes how the dependencies are determined, meaning that some recipe updates are not taken into account (e.g. deprecation).
  • Loading branch information
mjkw31 authored Apr 25, 2024
1 parent b81bfbb commit 50bbfc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ EOF
# Install all the required software
. /opt/spack/share/spack/setup-env.sh
spack mirror add s3cache "s3://spack"
tmpDir="$(mktemp -d)"
git clone "`+gmhttp.URL+`" "$tmpDir"
git -C "$tmpDir" checkout "`+commitHash+`"
spack repo add "$tmpDir"
spack buildcache keys --install --trust
spack config add "config:install_tree:padded_length:128"
spack -e . concretize
spack mirror add s3cache "s3://spack"
spack buildcache keys --install --trust
if bash -c "type -P xvfb-run" > /dev/null; then
xvfb-run -a spack -e . install --fail-fast
else
Expand Down
4 changes: 2 additions & 2 deletions build/singularity.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ EOF

# Install all the required software
. /opt/spack/share/spack/setup-env.sh
spack mirror add s3cache "{{ .S3BinaryCache }}"
tmpDir="$(mktemp -d)"
git clone "{{ .RepoURL }}" "$tmpDir"
git -C "$tmpDir" checkout "{{ .RepoRef }}"
spack repo add "$tmpDir"
spack buildcache keys --install --trust
spack config add "config:install_tree:padded_length:128"
spack -e . concretize
spack mirror add s3cache "{{ .S3BinaryCache }}"
spack buildcache keys --install --trust
if bash -c "type -P xvfb-run" > /dev/null; then
xvfb-run -a spack -e . install --fail-fast
else
Expand Down

0 comments on commit 50bbfc1

Please sign in to comment.