Skip to content

Commit cb2652a

Browse files
committed
fix: use cp -r instead of mklink /J for LLVM pre-seed (avoids permission issues)
1 parent 40738ab commit cb2652a

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/ci-windows.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,17 +262,15 @@ jobs:
262262
263263
# Pre-seed the mcpp sandbox with the already-installed LLVM from
264264
# the global xlings. xlings won't re-download if the package dir
265-
# exists, but it may create an empty stub. Symlinking avoids
266-
# a redundant ~500MB download.
265+
# exists, but it may create an empty stub. Copy instead of junction
266+
# to avoid Windows symlink permission issues on CI runners.
267267
MCPP_XPKGS="$USERPROFILE/.mcpp/registry/data/xpkgs"
268268
XLINGS_XPKGS="$USERPROFILE/.xlings/data/xpkgs"
269269
if [ -d "$XLINGS_XPKGS/xim-x-llvm" ]; then
270270
mkdir -p "$MCPP_XPKGS"
271-
# Remove empty stub if mcpp's xlings created one
272271
rm -rf "$MCPP_XPKGS/xim-x-llvm"
273-
# Use junction (Windows symlink for directories)
274-
cmd.exe //c "mklink /J \"$(cygpath -w "$MCPP_XPKGS/xim-x-llvm")\" \"$(cygpath -w "$XLINGS_XPKGS/xim-x-llvm")\""
275-
echo "Linked LLVM xpkg from global xlings"
272+
cp -r "$XLINGS_XPKGS/xim-x-llvm" "$MCPP_XPKGS/xim-x-llvm"
273+
echo "Copied LLVM xpkg from global xlings"
276274
ls "$MCPP_XPKGS/xim-x-llvm/20.1.7/bin/" | head -5
277275
fi
278276

0 commit comments

Comments
 (0)