From e842f407e7ab1bf4b38e6176d233cd0d91c00808 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 6 Jan 2024 13:39:54 +0100 Subject: [PATCH] CI: add MSYS Makefile tests --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e3b14983..e1e59247 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -212,3 +212,34 @@ jobs: - name: CTest shell: msys2 {0} run: ctest --no-tests=error --test-dir out -VV --build-config Release + + msys2-makefile-test: + name: msys2-makefile-${{ matrix.msystem }} + needs: makefile-analysis + runs-on: windows-2022 + strategy: + fail-fast: false + matrix: + include: + - { msystem: msys, toolchain: "gcc" } + - { msystem: mingw32, env: mingw-w64-i686- } + - { msystem: mingw64, env: mingw-w64-x86_64- } + - { msystem: ucrt64, env: mingw-w64-ucrt-x86_64- } + # - { msystem: clang32, env: mingw-w64-clang-i686- } disabled, lld does not support the "-r" option + # - { msystem: clang64, env: mingw-w64-clang-x86_64- } disabled, lld does not support the "-r" option + env: + CC: cc.exe + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup MSYS2 ${{matrix.msystem}} + uses: msys2/setup-msys2@v2 + with: + msystem: ${{matrix.msystem}} + update: true + install: >- + make + ${{ matrix.env }}${{ matrix.toolchain || 'toolchain' }} + - name: Run tests + shell: msys2 {0} + run: ./test/ci/test.sh