Skip to content

Commit

Permalink
ci : add building in MSYS2 environments (Windows) (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
przemoc committed Apr 22, 2024
1 parent 964467c commit d8bd0fd
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,35 @@ jobs:
cd build
cmake ..
cmake --build . --config Release
windows-msys2:
runs-on: windows-latest

strategy:
fail-fast: false
matrix:
include:
- { sys: UCRT64, env: ucrt-x86_64, build: Release }
- { sys: CLANG64, env: clang-x86_64, build: Release }

steps:
- name: Clone
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup ${{ matrix.sys }}
uses: msys2/setup-msys2@v2
with:
update: true
msystem: ${{matrix.sys}}
install: >-
base-devel
mingw-w64-${{matrix.env}}-toolchain
mingw-w64-${{matrix.env}}-cmake
- name: Build using CMake
shell: msys2 {0}
run: |
cmake -B build
cmake --build build --config ${{ matrix.build }} -j $(nproc)

0 comments on commit d8bd0fd

Please sign in to comment.