Skip to content

Commit f26daf5

Browse files
committed
CI: fix MSVC builds when building dependencies
1 parent 6e1d53d commit f26daf5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,12 @@ jobs:
232232
# make Windows packages like Clang available in MSYS
233233
path-type: inherit
234234

235-
- name: Delete MinGW gmake (MSVC)
236-
if: env.IS_WINDOWS_MSVC == 'true'
237-
# delete /c/Strawberry/c/bin/gmake built for MinGW that is found on runners, because we must use make built for MSYS
238-
run: if GMAKE_PATH=`which gmake`; then rm -f "$GMAKE_PATH"; fi
235+
- name: Remove Perl Strawberry installation (MSVC)
236+
if: env.IS_WINDOWS_MSVC == 'true' && github.event.inputs.tools_windows_msvc_branch
237+
# this directory contains various MinGW libraries that can get picked up by CMake
238+
# and a MinGW gmake that we cannot use (we must use MSYS make), so we delete it
239+
run: rmdir /S /Q C:\Strawberry\c
240+
shell: cmd
239241

240242
- name: Install Windows packages (MSVC)
241243
if: env.IS_WINDOWS_MSVC == 'true'

0 commit comments

Comments
 (0)