Skip to content

Commit

Permalink
Merge pull request #283 from safedep/ci/vet-windows-releaser
Browse files Browse the repository at this point in the history
ci: Add Windows build support
  • Loading branch information
abhisek authored Nov 23, 2024
2 parents 9fb9b3f + 094e557 commit 1308f26
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
7 changes: 7 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1308f26

Please sign in to comment.