diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 688db4a..a5bdd6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,7 @@ on: push env: RELEASE_FILES: | linux/*.so + windows/*.dll jobs: build_ubuntu: @@ -23,6 +24,35 @@ jobs: with: name: linux path: build/*.so + + build_windows: + runs-on: windows-latest + defaults: + run: + shell: msys2 {0} + steps: + - uses: actions/checkout@v2 + - uses: msys2/setup-msys2@v2 + with: + msystem: MINGW64 + update: true + install: >- + base-devel + git + make + mingw-w64-x86_64-cmake + mingw-w64-x86_64-ninja + mingw-w64-x86_64-toolchain + - name: Configure build + run: cmake -Bbuild -H. + - name: Build + run: cmake --build ./build + - name: Store artifacts + uses: actions/upload-artifact@v2 + with: + name: windows + path: build/*.dll + release: if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }} needs: [build_ubuntu]