diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c890c8f..d33deb3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -69,3 +69,44 @@ jobs: - name: Test working-directory: ${{github.workspace}}/build run: ctest -C ${{env.BUILD_TYPE}} + + + + windows-build: + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + include: + - { icon: '⬛', sys: mingw32 } + - { icon: '🟦', sys: mingw64 } + - { icon: '🟨', sys: ucrt64 } + - { icon: '🟧', sys: clang64 } + name: 🚧${{ matrix.icon }} ${{ matrix.sys }} + defaults: + run: + shell: msys2 {0} + steps: + + - name: '🧰 Checkout' + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: '${{ matrix.icon }} Setup MSYS2' + uses: msys2/setup-msys2@v2 + with: + msystem: ${{matrix.sys}} + update: true + install: >- + git + make + pacboy: >- + toolchain:p + cmake:p + ninja:p + + - name: '🚧 Build TOOL' + run: | + cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release + cmake --build build \ No newline at end of file