Skip to content

Commit a5f79df

Browse files
committed
CI: Cross-compile Windows builds with mingw
1 parent 8e13217 commit a5f79df

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/builds.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
target:
1717
[
1818
{ platform: linux, arch: x86_64, os: ubuntu-22.04 },
19-
{ platform: windows, arch: x86_64, os: windows-latest },
20-
{ platform: windows, arch: x86_32, os: windows-latest },
19+
{ platform: windows, arch: x86_64, os: ubuntu-22.04 },
20+
{ platform: windows, arch: x86_32, os: ubuntu-22.04 },
2121
{ platform: macos, arch: universal, os: macos-latest },
2222
{ platform: android, arch: arm64, os: ubuntu-22.04 },
2323
{ platform: android, arch: arm32, os: ubuntu-22.04 },
@@ -61,6 +61,7 @@ jobs:
6161
with:
6262
platform: ${{ matrix.target.platform }}
6363
em-version: 3.1.62
64+
mingw-version: "" # Use package manager default
6465

6566
# Build GDExtension (with caches)
6667
- name: Cache .scons_cache
@@ -73,7 +74,7 @@ jobs:
7374
env:
7475
SCONS_CACHE: ${{ github.workspace }}/.scons-cache/
7576
run: |
76-
scons target=${{ matrix.target-type }} platform=${{ matrix.target.platform }} arch=${{ matrix.target.arch }} precision=${{ matrix.float-precision }}
77+
scons use_mingw=yes target=${{ matrix.target-type }} platform=${{ matrix.target.platform }} arch=${{ matrix.target.arch }} precision=${{ matrix.float-precision }}
7778
7879
# Sign the binary (macOS only)
7980
- name: Mac Sign

0 commit comments

Comments
 (0)