Skip to content

Commit

Permalink
CI: fix MSVC builds when building dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
triplef committed Feb 17, 2023
1 parent 6e1d53d commit f26daf5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,12 @@ jobs:
# make Windows packages like Clang available in MSYS
path-type: inherit

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

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

0 comments on commit f26daf5

Please sign in to comment.