Skip to content

Commit 4172553

Browse files
sbryngelsonclaude
andcommitted
Fix cross-runner cache by updating install/ config paths
When the cache moves between runner instances (e.g. actions-runner-6 to actions-runner-1), the sed path replacement only updated staging/ CMake files. Config files in install/ (.pc, .cmake) still had the old runner path, causing silo/HDF5 to link against nonexistent paths and h5dump to fail on all tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 08490be commit 4172553

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/scripts/setup-build-cache.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,17 @@ if [ -f "$_workspace_marker" ]; then
7575
_old_workspace=$(cat "$_workspace_marker")
7676
if [ "$_old_workspace" != "$(pwd)" ]; then
7777
echo " Workspace path changed: $_old_workspace -> $(pwd)"
78-
echo " Updating cached CMake paths..."
78+
echo " Updating cached paths..."
79+
# Update CMake build files in staging/
7980
find "$_cache_dir/staging" -type f \
8081
\( -name "CMakeCache.txt" -o -name "*.cmake" \
8182
-o -name "*.make" -o -name "Makefile" \
8283
-o -name "build.ninja" \) \
8384
-exec sed -i "s|${_old_workspace}|$(pwd)|g" {} + 2>/dev/null || true
85+
# Update pkg-config and cmake config files in install/
86+
find "$_cache_dir/install" -type f \
87+
\( -name "*.pc" -o -name "*.cmake" \) \
88+
-exec sed -i "s|${_old_workspace}|$(pwd)|g" {} + 2>/dev/null || true
8489
fi
8590
fi
8691
echo "$(pwd)" > "$_workspace_marker"

0 commit comments

Comments
 (0)