@@ -7,6 +7,8 @@ IFS=$'\n\t'
77
88source " $( cd " $( dirname " $0 " ) " && pwd) /../shared.sh"
99if isWindows; then
10+ ciCommandAddPath " c:/msys64/usr/bin"
11+
1012 # Detect the native Python version installed on the agent. On GitHub
1113 # Actions, the C:\hostedtoolcache\windows\Python directory contains a
1214 # subdirectory for each installed Python version.
@@ -24,38 +26,4 @@ if isWindows; then
2426 fi
2527 ciCommandAddPath " C:\\ hostedtoolcache\\ windows\\ Python\\ ${native_python_version} \\ x64"
2628 ciCommandAddPath " C:\\ hostedtoolcache\\ windows\\ Python\\ ${native_python_version} \\ x64\\ Scripts"
27-
28- # Install pacboy for easily installing packages
29- pacman -S --noconfirm pactoys
30-
31- # Remove these pre-installed tools so we can't accidentally use them, because we are using the
32- # MSYS2 setup action versions instead. Because `rm -r`-ing them is slow, we mv them off path
33- # instead.
34- # Remove pre-installed version of MSYS2
35- echo " Cleaning up existing tools in PATH"
36- notpath=" /c/NOT/ON/PATH/"
37- mkdir --parents " $notpath "
38- mv -t " $notpath " " /c/msys64/"
39- # Remove Strawberry Perl, which contains a version of mingw
40- mv -t " $notpath " " /c/Strawberry/"
41- # Remove these other copies of mingw, I don't even know where they come from.
42- mv -t " $notpath " " /c/mingw64/"
43- mv -t " $notpath " " /c/mingw32/"
44- echo " Finished cleaning up tools in PATH"
45-
46- if isKnownToBeMingwBuild; then
47- # Use the mingw version of CMake for mingw builds.
48- # However, the MSVC build needs native CMake, as it fails with the mingw one.
49- # Delete native CMake
50- rm -r " /c/Program Files/CMake/"
51- # Install mingw-w64-$arch-cmake
52- pacboy -S --noconfirm cmake:p
53-
54- # It would be nice to use MSYS's git in MinGW builds so that it's tested and known to
55- # work. But it makes everything extremely slow, so it's commented out for now.
56- # # Delete Windows-Git
57- # rm -r "/c/Program Files/Git/"
58- # # Install MSYS2 git
59- # pacman -S --noconfirm git
60- fi
6129fi
0 commit comments