Add Windows Autobuild CI (#244)

* Add Windows x64 CI

* Add missing dependency

* Fix rapidjson build

* Add Windows build to Travis CI

Add Windows x86 build to GitHub Actions

* Fix mingw32-make not found

* Fix subsystem on Actions

Fix install prefix on Travis CI.

* Use MINGW_PREFIX instead of /usr

* Clean up scripts

Add Windows x86 build to Travis CI.
This commit is contained in:
Tindy X
2020-09-07 20:08:19 +08:00
committed by GitHub
parent 10c3d2f35e
commit abe03cebeb
4 changed files with 154 additions and 2 deletions

View File

@@ -40,3 +40,44 @@ jobs:
with:
name: subconverter_darwin64
path: subconverter/
windows64_build:
name: Windows x86_64 Build
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
update: true
install: base-devel git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-libevent mingw-w64-x86_64-pcre2 python2 python2-pip
- name: Build
run: bash scripts/build.windows.release.sh
- name: Upload
uses: actions/upload-artifact@v1
with:
name: subconverter_win64
path: subconverter/
windows32_build:
name: Windows x86 Build
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
update: true
install: base-devel git mingw-w64-i686-gcc mingw-w64-i686-cmake mingw-w64-i686-libevent mingw-w64-i686-pcre2 python2 python2-pip
msystem: MINGW32
- name: Build
run: bash scripts/build.windows.release.sh
- name: Upload
uses: actions/upload-artifact@v1
with:
name: subconverter_win32
path: subconverter/