From d5d8895b8cee074de2d710d0479ed3ccf812ae96 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Tue, 15 Jun 2021 22:08:11 +0300 Subject: [PATCH] Add mingw workflow (#177) --- .github/workflows/.github.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/.github.yml b/.github/workflows/.github.yml index 87f8bcb2..af198d7f 100644 --- a/.github/workflows/.github.yml +++ b/.github/workflows/.github.yml @@ -43,3 +43,10 @@ jobs: run: | cmake -B build-gs -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DGOLDSOURCE_SUPPORT=ON && cmake --build build-gs --target all + - name: Build with mingw + if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.cc, 'gcc') + run: | + sudo apt-get install -y mingw-w64-i686-dev binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686 + cmake -B build-mingw -S . -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++ + cmake --build build-mingw --target all +