Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
38
Issue boards
Milestones
Wiki
Code
Merge requests
28
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
ebrains-spack-builds
Commits
613b1914
Commit
613b1914
authored
1 month ago
by
Eleni Mathioulaki
Browse files
Options
Downloads
Patches
Plain Diff
fix(CI): check for existing mirror before adding or deleting local cache
parent
d4aeb24d
No related branches found
Branches containing commit
No related tags found
1 merge request
!651
create new experimental release
Pipeline
#58982
passed with stage
in 1 hour, 5 minutes, and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install_spack_env.sh
+9
-4
9 additions, 4 deletions
install_spack_env.sh
with
9 additions
and
4 deletions
install_spack_env.sh
+
9
−
4
View file @
613b1914
...
...
@@ -81,9 +81,12 @@ spack spec aida
# rebuild spack's database (could be an debugging session)
spack reindex
# TODO for newer spack versions, add: --autopush --unsigned, drop create cache command below
# (Note: spack expects `build_cache/` below the folder we specify here
spack mirror add local_cache
${
SPACK_CACHE_BUILD
}
# add local mirror if it does not exist
if
[[
!
$(
spack mirror list |
grep
local_cache
)
]]
;
then
# TODO for newer spack versions, add: --autopush --unsigned, drop create cache command below
# (Note: spack expects `build_cache/` below the folder we specify here
spack mirror add local_cache
${
SPACK_CACHE_BUILD
}
fi
# install platform compiler (extract version from packages.yaml)
if
[
$SYSTEMNAME
==
ebrainslab
]
...
...
@@ -224,7 +227,9 @@ if [ $spack_install_ret -ne 0 ]; then
fi
# remove local cache content
spack mirror destroy
--mirror-name
local_cache
if
[
-d
${
SPACK_CACHE_BUILD
}
]
;
then
spack mirror destroy
--mirror-name
local_cache
fi
# TODO: when using spack remote OCI build caches require an index file
#spack mirror add ebrains oci://docker-registry.ebrains.eu/esd/build_cache
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment