Skip to content

Commit 68a0f4c

Browse files
committed
ci: use a junction on Windows instead of a symlink
Symbolic links are still not quite as easy to use on Windows as on Linux (for example, on versions older than Windows 10, only administrators can create symlinks, and on Windows 10 you still need to be in developer mode for regular users to have permission), but NTFS junctions can give us a way out. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f78fe84 commit 68a0f4c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/run-build-and-tests.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55

66
. ${0%/*}/lib.sh
77

8-
ln -s "$cache_dir/.prove" t/.prove
8+
case "$CI_OS_NAME" in
9+
windows*) cmd //c mklink //j t\\.prove "$(cygpath -aw "$cache_dir/.prove")";;
10+
*) ln -s "$cache_dir/.prove" t/.prove;;
11+
esac
912

1013
make
1114
make --quiet test

0 commit comments

Comments
 (0)