CI: Set the cache path for all platforms (#49373)

The SPACK_USER_CACHE_PATH was being overwritten in the windows CI
before_script. This should set the path for all systems unless
explicitly overridden.
This commit is contained in:
Ryan Krattiger 2025-03-07 17:07:56 -06:00 committed by GitHub
parent be521c441e
commit 50b56ee1ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,8 +123,8 @@ ci:
variables:
# Disable local configs to avoid issues on shell runners
SPACK_DISABLE_LOCAL_CONFIG: "1"
SPACK_USER_CACHE_PATH: "${CI_PROJECT_DIR}/tmp/_user_cache/"
before_script:
- - export SPACK_USER_CACHE_PATH="${CI_PROJECT_DIR}/tmp/_user_cache/"
- - uname -a || true
- grep -E "vendor|model name" /proc/cpuinfo 2>/dev/null | sort -u || head -n10 /proc/cpuinfo 2>/dev/null || true
- nproc || true