Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: push
env:
RELEASE_FILES: |
linux/*.so
windows/*.dll

jobs:
build_ubuntu:
Expand All @@ -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]
Expand Down