Skip to content
Snippets Groups Projects
Commit 3a87a92a authored by Fabian.Jakub's avatar Fabian.Jakub
Browse files

encapsulate SPACK_BUILD_ICON when using %icon.spack_cmd%

parent 66bbbc1a
No related branches found
No related tags found
1 merge request!4Switching to the advanced configuration method and fixing spack build.
...@@ -15,12 +15,14 @@ cd ${WORKDIR} ...@@ -15,12 +15,14 @@ cd ${WORKDIR}
load_spack "%spack.init%" "%spack.root%" "%spack.url%" "%spack.branch%" "%spack.compiler%" "%spack.disable_local_config%" "%spack.user_cache_path%" load_spack "%spack.init%" "%spack.root%" "%spack.url%" "%spack.branch%" "%spack.compiler%" "%spack.disable_local_config%" "%spack.user_cache_path%"
SPACK_BUILD_ICON="%icon.spack_cmd%" SPACK_BUILD_ICON="%icon.spack_cmd%"
if [ ! -z $SPACK_BUILD_ICON ]; then if [ ! -z "$SPACK_BUILD_ICON" ]; then
echo "Installing ICON with spack!" echo "Installing ICON with spack!"
echo "cmd=$SPACK_BUILD_ICON" echo "cmd=$SPACK_BUILD_ICON"
spack repo add ${WORKDIR}/proj/spack_repo spack repo add ${WORKDIR}/proj/spack_repo
spack install $SPACK_BUILD_ICON spack install $SPACK_BUILD_ICON
spack load $SPACK_BUILD_ICON spack load $SPACK_BUILD_ICON
else
echo "%icon.spack_cmd% is not defined. If you want to compile icon with spack, please provide a spack compile instruction string in your proj.yaml"
fi fi
# Need to get ECCODES DWD definitions: # Need to get ECCODES DWD definitions:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment