File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ jobs:
104104 update : false
105105 release : true
106106 path-type : inherit
107- install : " make git dos2unix diffutils\n "
107+ install : " make dos2unix diffutils\n "
108108 - name : disable git crlf conversion
109109 run : git config --global core.autocrlf false
110110 - name : checkout the source code
@@ -509,7 +509,7 @@ jobs:
509509 update : false
510510 release : true
511511 path-type : inherit
512- install : " make git dos2unix diffutils\n "
512+ install : " make dos2unix diffutils\n "
513513 - name : disable git crlf conversion
514514 run : git config --global core.autocrlf false
515515 - name : checkout the source code
@@ -648,7 +648,7 @@ jobs:
648648 update : false
649649 release : true
650650 path-type : inherit
651- install : " make git dos2unix diffutils\n "
651+ install : " make dos2unix diffutils\n "
652652 - name : disable git crlf conversion
653653 run : git config --global core.autocrlf false
654654 - name : checkout the source code
Original file line number Diff line number Diff line change @@ -134,7 +134,6 @@ x--expand-yaml-anchors--remove:
134134 path-type : inherit
135135 install : >
136136 make
137- git
138137 dos2unix
139138 diffutils
140139
Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ if isWindows; then
3030
3131 # Delete these pre-installed tools so we can't accidentally use them, because we are using the
3232 # MSYS2 setup action versions instead.
33- # Delete Windows-Git
34- rm -r " /c/Program Files/Git/"
3533 # Delete pre-installed version of MSYS2
3634 rm -r " /c/msys64/"
3735 # Delete Strawberry Perl, which contains a version of mingw
@@ -41,9 +39,18 @@ if isWindows; then
4139 rm -r " /c/mingw32/"
4240
4341 if isKnownToBeMingwBuild; then
42+ # Use the mingw version of CMake for mingw builds.
43+ # However, the MSVC build needs native CMake, as it fails with the mingw one.
4444 # Delete native CMake
4545 rm -r " /c/Program Files/CMake/"
4646 # Install mingw-w64-$arch-cmake
4747 pacboy -S --noconfirm cmake:p
48- fi # Otherwise, the MSVC build needs native CMake, it fails with the mingw one.
48+
49+ # We use Git-for-Windows for MSVC builds, and MSYS2 Git for mingw builds,
50+ # so that both are tested.
51+ # Delete Windows-Git
52+ rm -r " /c/Program Files/Git/"
53+ # Install MSYS2 git
54+ pacman -S --noconfirm git
55+ fi
4956fi
You can’t perform that action at this time.
0 commit comments