File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ jobs:
1010 include :
1111 - os : windows-latest
1212 arch : x64
13- cmake-args : -A x64 -DCMAKE_CXX_FLAGS="/W0 /MT " -DBUILD_STATIC_LIB=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_TOOLS=OFF -DBUILD_TESTS=OFF
13+ cmake-args : -G "MinGW Makefiles" -DCMAKE_C_FLAGS="-m64 -w -static -static-libgcc -static-libstdc++ " -DCMAKE_CXX_FLAGS="-m64 -w -static -static-libgcc -static-libstdc++" -DBUILD_SHARED_LIBS=ON -DBUILD_TOOLS=OFF -DBUILD_TESTS=OFF
1414 runtime : win-x64
1515 - os : windows-latest
1616 arch : x86
17- cmake-args : -A Win32 -DCMAKE_CXX_FLAGS="/W0 /MT " -DBUILD_STATIC_LIB=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_TOOLS=OFF -DBUILD_TESTS=OFF
17+ cmake-args : -G "MinGW Makefiles" -DCMAKE_C_FLAGS="-m32 -w -static -static-libgcc -static-libstdc++ " -DCMAKE_CXX_FLAGS="-m32 -w -static -static-libgcc -static-libstdc++" -DBUILD_SHARED_LIBS=ON -DBUILD_TOOLS=OFF -DBUILD_TESTS=OFF
1818 runtime : win-x86
1919 - os : ubuntu-latest
2020 arch : x64
@@ -38,17 +38,28 @@ jobs:
3838 sudo apt-get update
3939 sudo apt-get install -y g++-multilib gcc-multilib cmake make
4040
41+ - name : Install build deps (Windows MinGW)
42+ if : runner.os == 'Windows'
43+ uses : msys2/setup-msys2@v2
44+ with :
45+ update : true
46+ install : >-
47+ mingw-w64-${{ matrix.arch }}-gcc
48+ mingw-w64-${{ matrix.arch }}-cmake
49+ mingw-w64-${{ matrix.arch }}-make
50+
4151 - name : Configure
4252 run : cmake -S binaryen -B binaryen/build ${{ matrix.cmake-args }}
53+ shell : msys2 {0}
4354
4455 - name : Build (Linux)
4556 if : runner.os == 'Linux'
4657 run : cmake --build binaryen/build -- -j$(nproc)
47-
58+
4859 - name : Build (Windows)
4960 if : runner.os == 'Windows'
50- run : cmake --build binaryen/build --config Release -- /m
51- shell : pwsh
61+ run : cmake --build binaryen/build -- -j$(nproc)
62+ shell : msys2 {0}
5263
5364 - name : Copy to NuGet runtime folder
5465 run : |
You can’t perform that action at this time.
0 commit comments