From fd41110d383b7240231718f009b21498e3984ccc Mon Sep 17 00:00:00 2001 From: Dimitrij Mijoski Date: Tue, 9 Aug 2022 12:44:37 +0200 Subject: [PATCH] Add MinGW to CI --- .github/workflows/windows.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 2f03e47f..6e79f60c 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -67,3 +67,26 @@ jobs: run: ctest -C ${{matrix.build_type}} -V env: CTEST_OUTPUT_ON_FAILURE: True + + mingw: + runs-on: windows-latest + defaults: + run: + shell: msys2 {0} + strategy: + matrix: + sys: [ mingw64, mingw32, ucrt64 ] + steps: + - uses: msys2/setup-msys2@v2 + with: + release: false + msystem: ${{matrix.sys}} + pacboy: cc:p cmake:p ninja:p lld:p + - uses: actions/checkout@v2 + - name: Configure + run: cmake -B ../build -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug + env: { LDFLAGS: -fuse-ld=lld } + - name: Build + run: cmake --build ../build + - name: Test + run: ctest -j `nproc` --test-dir ../build