ci: Add Windows build support

This commit is contained in:
abhisek 2024-11-23 11:10:47 +05:30
parent 9fb9b3fca6
commit 094e557720
No known key found for this signature in database
GPG Key ID: CB92A4990C02A88F
2 changed files with 9 additions and 1 deletions

View File

@ -46,7 +46,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install OSX Cross Compiler Build Tools
run: sudo apt-get install -y -qq clang gcc g++ zlib1g-dev libmpc-dev libmpfr-dev libgmp-dev cmake libxml2-dev libssl-dev xz-utils
run: sudo apt-get install -y -qq build-essential clang gcc g++ gcc-mingw-w64 \
zlib1g-dev libmpc-dev libmpfr-dev libgmp-dev cmake libxml2-dev libssl-dev xz-utils
- name: Setup OSX Cross Compiler Tool Chain Environment
run: |

View File

@ -24,6 +24,13 @@ builds:
- CC=o64-clang
- CXX=o64-clang++
- id: windows
goos: [windows]
goarch: [amd64]
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
release:
# for prerelease it doesn't build and distribute
prerelease: auto