Skip to content

Commit

Permalink
Merge pull request #26 from Biswa96/gha-msys2
Browse files Browse the repository at this point in the history
CI: Add Windows build using msys2
  • Loading branch information
JoesCat committed Dec 20, 2021
2 parents 6cba8fd + 62404e0 commit 67b21e4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -46,3 +46,34 @@ jobs:
run: make
- name: Test library
run: make check
windows:
runs-on: windows-latest
strategy:
matrix:
include: [
{ msystem: MINGW64, toolchain: mingw-w64-x86_64-toolchain },
{ msystem: MINGW32, toolchain: mingw-w64-i686-toolchain },
{ msystem: UCRT64, toolchain: mingw-w64-ucrt-x86_64-toolchain },
{ msystem: CLANG64, toolchain: mingw-w64-clang-x86_64-toolchain },
]
name: ${{ matrix.msystem }}
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
update: true
install: autotools base-devel git ${{ matrix.toolchain }}
- name: Create configure
run: |
autoreconf -i
automake
- name: Choose configure
run: ./configure
- name: Make library
run: make
- name: Test library
run: make check

0 comments on commit 67b21e4

Please sign in to comment.