Skip to content

Commit cc5e285

Browse files
committed
Fix Spack binary cache to allow source fallback
- Remove --use-buildcache flag that forced binary-only mode - Spack will automatically use binary cache when available - Falls back to building from source when binaries not found - Prevents 'No binary found when cache-only was specified' error - gcc-runtime and python-venv often need source builds
1 parent c93d78f commit cc5e285

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/spack.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ jobs:
160160
- name: Install MFC via Spack
161161
run: |
162162
. spack/share/spack/setup-env.sh
163-
# Install minimal configuration, use binary cache when available
164-
spack install --show-log-on-error --use-buildcache package:auto,dependencies:only mfc~mpi~post_process
163+
# Install minimal configuration
164+
# Binary cache is already configured, Spack will use it automatically when available
165+
spack install --show-log-on-error mfc~mpi~post_process
165166
timeout-minutes: 45
166167

167168
- name: Test MFC Execution

0 commit comments

Comments
 (0)