-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore errors when creating/using source and binary caches (#684)
* Ignore errors when creating source caches and dealing with binary caches * Try again --------- Co-authored-by: Alex Richert <[email protected]> Co-authored-by: Stephen Herbener <[email protected]>
- Loading branch information
1 parent
647e455
commit 4b0e18a
Showing
3 changed files
with
30 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,11 +128,13 @@ jobs: | |
# Add and update source cache | ||
spack mirror add local-source file:///home/ubuntu/spack-stack/source-cache/ | ||
spack mirror create -a -d /home/ubuntu/spack-stack/source-cache/ | ||
# DH* 20230721 - todo remove || true | ||
spack mirror create -a -d /home/ubuntu/spack-stack/source-cache/ || true | ||
# Add binary cache and reindex it | ||
spack mirror add local-binary file:///home/ubuntu/spack-stack/build-cache/ | ||
spack buildcache update-index -m local-binary | ||
# DH* 20230721 - todo remove || true | ||
spack buildcache update-index -m local-binary || true | ||
echo "Packages in combined spack build caches:" | ||
spack buildcache list | ||
|
@@ -142,12 +144,16 @@ jobs: | |
# base-env | ||
echo "base-env ..." | ||
spack install --fail-fast --source --no-check-signature base-env 2>&1 | tee log.install.intel-2021.4.0.base-env | ||
# DH* 20230721 - todo remove --no-checksum | ||
spack install --fail-fast --source --no-check-signature --no-checksum base-env 2>&1 | tee log.install.intel-2021.4.0.base-env | ||
# DH* 20230721 - todo remove || true (this was here all the time, but should not be needed if spack creates buildcaches correctly) | ||
spack buildcache create -a -r -u -d /home/ubuntu/spack-stack/build-cache/ || true | ||
# the rest | ||
echo "${{ inputs.template || 'unified-dev' }} ..." | ||
spack install --fail-fast --source --no-check-signature 2>&1 | tee [email protected].${{ inputs.template || 'unified-dev' }} | ||
# DH* 20230721 - todo remove --no-checksum | ||
spack install --fail-fast --source --no-check-signature --no-checksum 2>&1 | tee [email protected].${{ inputs.template || 'unified-dev' }} | ||
# DH* 20230721 - todo remove || true (this was here all the time, but should not be needed if spack creates buildcaches correctly) | ||
spack buildcache create -a -r -u -d /home/ubuntu/spack-stack/build-cache/ || true | ||
# Next steps: synchronize source and build cache to a central/combined mirror? | ||
|