Skip to content
Snippets Groups Projects
Commit 8e2132a1 authored by Eleni Mathioulaki's avatar Eleni Mathioulaki
Browse files

make sure compiler isn't installed twice

parent c2b0b93a
No related branches found
No related tags found
1 merge request!434create new experimental release
Pipeline #25346 passed with stage
in 5 minutes and 55 seconds
......@@ -254,7 +254,7 @@ sync-gitlab-spack-instance:
# install compiler (if not already installed)
- EBRAINS_SPACK_COMPILER=$(grep 'compiler' $CI_PROJECT_DIR/site-config/$SYSTEMNAME/packages.yaml | awk -F'[][]' '{ print $2 }')
- spack compiler find
- spack install $EBRAINS_SPACK_COMPILER
- spack compiler list | grep -q $EBRAINS_SPACK_COMPILER || spack install $EBRAINS_SPACK_COMPILER
- spack load $EBRAINS_SPACK_COMPILER
- spack compiler find
- spack compiler list
......
......@@ -37,7 +37,7 @@ if [ $SYSTEMNAME == ebrainslab ]
then
EBRAINS_SPACK_COMPILER=$(grep 'compiler' $EBRAINS_REPO/site-config/$SYSTEMNAME/packages.yaml | awk -F'[][]' '{ print $2 }')
spack compiler find
spack install $EBRAINS_SPACK_COMPILER
spack compiler list | grep -q $EBRAINS_SPACK_COMPILER || spack install $EBRAINS_SPACK_COMPILER
spack load $EBRAINS_SPACK_COMPILER
fi
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment