Skip to content

Commit 2b19c4a

Browse files
committed
Copy patch files in ALL workflow jobs
Fixed all three jobs (lint, test-spec, test-install) to copy patch files alongside package.py. The test-spec job was failing because it wasn't copying the patch file.
1 parent 12b7aad commit 2b19c4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/spack.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ jobs:
4040
# Find the actual builtin repo location
4141
BUILTIN_REPO=$(spack repo list | grep builtin | awk '{print $NF}')
4242
echo "Builtin repo location: $BUILTIN_REPO"
43-
# Copy package to the builtin repo
43+
# Copy package and patch files to the builtin repo
4444
mkdir -p "$BUILTIN_REPO/packages/mfc"
4545
cp packaging/spack/package.py "$BUILTIN_REPO/packages/mfc/"
46+
cp packaging/spack/*.patch "$BUILTIN_REPO/packages/mfc/" 2>/dev/null || true
4647
# Verify package is visible
4748
spack list mfc
4849
# Show package info to confirm it loads
@@ -92,9 +93,10 @@ jobs:
9293
# Find the actual builtin repo location
9394
BUILTIN_REPO=$(spack repo list | grep builtin | awk '{print $NF}')
9495
echo "Builtin repo location: $BUILTIN_REPO"
95-
# Copy package to the builtin repo
96+
# Copy package and patch files to the builtin repo
9697
mkdir -p "$BUILTIN_REPO/packages/mfc"
9798
cp packaging/spack/package.py "$BUILTIN_REPO/packages/mfc/"
99+
cp packaging/spack/*.patch "$BUILTIN_REPO/packages/mfc/" 2>/dev/null || true
98100
# Verify package is visible
99101
spack list mfc
100102
# Show package info to confirm it loads

0 commit comments

Comments
 (0)