From d398c501d490691df04bd0cc1ee6ea498855575b Mon Sep 17 00:00:00 2001
From: Leandro Nini <[EMAIL REDACTED]>
Date: Thu, 5 Oct 2023 12:39:57 +0200
Subject: [PATCH] Add MinGW CI workflow
---
.github/workflows/CI-MinGW.yml | 39 ++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 .github/workflows/CI-MinGW.yml
diff --git a/.github/workflows/CI-MinGW.yml b/.github/workflows/CI-MinGW.yml
new file mode 100644
index 0000000..f350de5
--- /dev/null
+++ b/.github/workflows/CI-MinGW.yml
@@ -0,0 +1,39 @@
+name: CI MinGW
+
+on:
+ push:
+ branches: [ "master" ]
+ pull_request:
+ branches: [ "master" ]
+
+jobs:
+ build:
+ name: Linux (${{ matrix.configuration }})
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ configuration: [Debug, Release]
+ include:
+ - generator: MSYS Makefiles
+ os: windows-latest
+ defaults:
+ run:
+ shell: msys2 {0}
+
+ steps:
+ - uses: msys2/setup-msys2@v2
+ with:
+ update: true
+ install: >-
+ git
+ base-devel
+ mingw-w64-x86_64-toolchain
+ mingw-w64-x86_64-cmake
+ mingw-w64-x86_64-SDL2
+ - uses: actions/checkout@v3
+ - name: Build
+ run: |
+ mkdir build
+ cd build
+ cmake -G "${{ matrix.generator }}" -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} ..
+ cmake --build .