Skip to content

Commit

Permalink
CI: try to fix the Windows build a different way
Browse files Browse the repository at this point in the history
This approach prepends MinGW to the path, so that its make.exe takes
precedence over Windows's stub that complains about missing WSL.
  • Loading branch information
ctrueden committed Feb 2, 2024
1 parent 68af024 commit 9d2e3d6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v4

Expand All @@ -28,6 +24,12 @@ jobs:
java-version: '21'
cache: 'gradle'

- name: Enable MinGW
if: runner.os == 'Windows'
# https://stackoverflow.com/a/77298592/1207769
run: |
$env:PATH = "C:\msys64\usr\bin;$env:PATH"
- name: Build
run: make compile-all

Expand Down

0 comments on commit 9d2e3d6

Please sign in to comment.