From 9e27aefbdc32ee11ca7877e6578abde5e6332fde Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Tue, 14 Jun 2022 21:12:09 +0200 Subject: [PATCH] add Windows CI --- .github/workflows/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5cd4ab8..15b9cfd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,7 @@ jobs: matrix: platform: # !!! FIXME: figure out an efficient way to get SDL2 on the Windows/Mac bots. - { name: Linux, os: ubuntu-20.04, flags: -GNinja } + - { name: MinGW, os: windows-latest, flags: -GNinja -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_SYSTEM_NAME=Windows } - { name: Windows, os: windows-latest } - { name: MacOS, os: macos-latest } steps: @@ -17,7 +18,10 @@ jobs: if: runner.os == 'Linux' run: | sudo apt-get update - sudo apt-get install cmake ninja-build + sudo apt-get install ninja-build + - name: Setup MinGW dependencies + if: contains(matrix.platform.name, 'MinGW') + run: choco install ninja - name: Get PhysicsFS sources uses: actions/checkout@v2 - name: Configure CMake