Skip to content

Commit c5788cf

Browse files
authored
Update buildbinaryen.yml.
1 parent caca9a3 commit c5788cf

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/buildbinaryen.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
arch: x64
3838
target: windows
3939
cmake-args: >
40+
-G "MinGW Makefiles"
41+
-DCMAKE_C_COMPILER=gcc.exe
42+
-DCMAKE_CXX_COMPILER=g++.exe
4043
-DCMAKE_C_FLAGS="-m64 -w -static-libgcc -static-libstdc++"
4144
-DCMAKE_CXX_FLAGS="-m64 -w -static-libgcc -static-libstdc++"
4245
-DBUILD_SHARED_LIBS=ON
@@ -49,6 +52,9 @@ jobs:
4952
arch: x86
5053
target: windows
5154
cmake-args: >
55+
-G "MinGW Makefiles"
56+
-DCMAKE_C_COMPILER=gcc.exe
57+
-DCMAKE_CXX_COMPILER=g++.exe
5258
-DCMAKE_C_FLAGS="-m32 -w -static-libgcc -static-libstdc++"
5359
-DCMAKE_CXX_FLAGS="-m32 -w -static-libgcc -static-libstdc++"
5460
-DBUILD_SHARED_LIBS=ON
@@ -75,6 +81,12 @@ jobs:
7581
run: |
7682
choco install mingw --version 13.2.0 -y --force
7783
84+
- name: Add MinGW to PATH (Windows)
85+
if: matrix.os == 'windows-latest'
86+
run: |
87+
echo "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin" >> $env:GITHUB_PATH
88+
shell: pwsh
89+
7890
- name: Configure
7991
run: cmake -S binaryen -B binaryen ${{ matrix.cmake-args }}
8092

@@ -84,8 +96,8 @@ jobs:
8496

8597
- name: Build (Windows)
8698
if: matrix.os == 'windows-latest'
87-
run: cmake --build binaryen --config Release
88-
shell: cmd
99+
run: cmake --build binaryen
100+
shell: bash
89101

90102
- name: Copy to NuGet runtime folder
91103
run: |

0 commit comments

Comments
 (0)