Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autoicon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
w2w
autoicon
Commits
7e638975
Commit
7e638975
authored
2 years ago
by
Oriol Tintó
Browse files
Options
Downloads
Patches
Plain Diff
Add spack repo only if it doesn't exist.
parent
4188f25f
No related branches found
No related tags found
1 merge request
!4
Switching to the advanced configuration method and fixing spack build.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/common/build_icon.sh
+4
-1
4 additions, 1 deletion
templates/common/build_icon.sh
with
4 additions
and
1 deletion
templates/common/build_icon.sh
+
4
−
1
View file @
7e638975
...
...
@@ -18,7 +18,10 @@ SPACK_BUILD_ICON="%spack.build_cmd%"
if
[
!
-z
"
$SPACK_BUILD_ICON
"
]
;
then
echo
"Installing ICON with spack!"
echo
"cmd=
$SPACK_BUILD_ICON
"
spack repo add
${
WORKDIR
}
/proj/spack_repo
# In case the autosubmit repository with the icon-nwp receipt doesn't exist, add it
if
[
$(
spack repo list |
grep
autosubmit-icon-repository
-q
)
]
;
then
spack repo add
${
WORKDIR
}
/proj/spack_repo
fi
spack
install
$SPACK_BUILD_ICON
spack load
$SPACK_BUILD_ICON
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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