Skip to content
Snippets Groups Projects

feat: install most dependencies in cacheable layer, before adding main

Merged Wouter Deconinck requested to merge cacheable-layer into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -149,10 +149,10 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \
&& spack buildcache update-index eics3rw \
&& spack env activate --dir ${SPACK_ENV} \
&& if [ -n ${JUGGLER_VERSION} ] ; then \
spack config add "packages:juggler:require:['@git.${JUGGLER_VERSION}']" \
spack config add "packages:juggler:require:['@git.${JUGGLER_VERSION}']" ; \
fi \
&& if [ -n ${EICRECON_VERSION} ] ; then \
spack config add "packages:eicrecon:require:['@git.${EICRECON_VERSION}']" \
spack config add "packages:eicrecon:require:['@git.${EICRECON_VERSION}']" ; \
fi \
&& spack concretize --force --fresh \
&& make --jobs ${jobs} --keep-going --directory /opt/spack-environment \
Loading