Skip to content
Snippets Groups Projects
Commit 83e09d99 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Forgot some mention of the buildcache

parent 494e9ed8
Branches
No related tags found
2 merge requests!43Release/pinot noir/rhel9.4,!22Correcting cpu machines plus clang
Checking pipeline status
......@@ -48,7 +48,7 @@ do
buildcache create \
--update-index \
--key ${GPG_KEY_ID} \
${MOUNT_POINT}/buildcache/$environment
${BUILDCACHE_PATH}
echo "Checking ${STACK_CONFIG_PATH}/mark_explicit_${full_environment} for spec to mark explicit"
if [ -e ${STACK_CONFIG_PATH}/mark_explicit_${full_environment} ]
......
......@@ -92,7 +92,7 @@ do
buildcache create \
--update-index \
--key ${GPG_KEY_ID} \
${MOUNT_POINT}/buildcache/${environment} ${hashes}
${BUILDCACHE_PATH} ${hashes}
for compiler_hash in $(echo ${hashes}); do
location=$(${STACK_LOCATION}/spack/bin/spack location -i ${compiler_hash})
......
......@@ -192,11 +192,11 @@ spack/bin/spack \
gpg trust \
$GPG_PRIVATE_KEY
if [ ! -d ${MOUNT_POINT}/buildcache/${stack}/${STACK_VERSION}/${environment}/build_cache ]; then
if [ ! -d ${BUILDCACHE_PATH}/build_cache ]; then
spack/bin/spack \
--color=always \
gpg publish \
-d ${MOUNT_POINT}/buildcache/${stack}/${STACK_VERSION}/${environment}
-d ${BUILDCACHE_PATH}
fi
if ! spack/bin/spack mirror list | grep buildcache; then
......@@ -206,7 +206,7 @@ if ! spack/bin/spack mirror list | grep buildcache; then
mirror add \
--type binary \
--scope system \
buildcache file://${MOUNT_POINT}/buildcache/${stack}/${STACK_VERSION}/${environment}
buildcache file://${BUILDCACHE_PATH}
fi
spack/bin/spack \
......
......@@ -36,6 +36,7 @@ export STACK_LOCATION=${MOUNT_POINT}/${stack}/${environment}/${STACK_VERSION}
export full_environment=${environment}${suffix}
export SPACK_SYSTEM_CONFIG_PATH=${STACK_LOCATION}/spack/var/spack/environments/${full_environment}
export BUILDCACHE_PATH=${MOUNT_POINT}/buildcache/${stack}/${STACK_VERSION}/${environment}
if [ "$accelerator" != "none" ]
then
export acc_type=$(echo $env_json | jq -Mrc '.accelerator.type')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment