File tree 3 files changed +13
-7
lines changed
3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ jobs:
104
104
update : false
105
105
release : true
106
106
path-type : inherit
107
- install : " make git dos2unix diffutils\n "
107
+ install : " make dos2unix diffutils\n "
108
108
- name : disable git crlf conversion
109
109
run : git config --global core.autocrlf false
110
110
- name : checkout the source code
@@ -509,7 +509,7 @@ jobs:
509
509
update : false
510
510
release : true
511
511
path-type : inherit
512
- install : " make git dos2unix diffutils\n "
512
+ install : " make dos2unix diffutils\n "
513
513
- name : disable git crlf conversion
514
514
run : git config --global core.autocrlf false
515
515
- name : checkout the source code
@@ -648,7 +648,7 @@ jobs:
648
648
update : false
649
649
release : true
650
650
path-type : inherit
651
- install : " make git dos2unix diffutils\n "
651
+ install : " make dos2unix diffutils\n "
652
652
- name : disable git crlf conversion
653
653
run : git config --global core.autocrlf false
654
654
- name : checkout the source code
Original file line number Diff line number Diff line change @@ -134,7 +134,6 @@ x--expand-yaml-anchors--remove:
134
134
path-type : inherit
135
135
install : >
136
136
make
137
- git
138
137
dos2unix
139
138
diffutils
140
139
Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ if isWindows; then
30
30
31
31
# Delete these pre-installed tools so we can't accidentally use them, because we are using the
32
32
# MSYS2 setup action versions instead.
33
- # Delete Windows-Git
34
- rm -r " /c/Program Files/Git/"
35
33
# Delete pre-installed version of MSYS2
36
34
rm -r " /c/msys64/"
37
35
# Delete Strawberry Perl, which contains a version of mingw
@@ -41,9 +39,18 @@ if isWindows; then
41
39
rm -r " /c/mingw32/"
42
40
43
41
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.
44
44
# Delete native CMake
45
45
rm -r " /c/Program Files/CMake/"
46
46
# Install mingw-w64-$arch-cmake
47
47
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
49
56
fi
You can’t perform that action at this time.
0 commit comments