Skip to content

Commit

Permalink
ci: cross compile to windows
Browse files Browse the repository at this point in the history
  • Loading branch information
songlim327 committed Oct 4, 2024
1 parent 74353f3 commit eb340f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install MinGW for cross-compiling to Windows
run: |
sudo apt-get update
sudo apt-get install -y gcc-mingw-w64 g++-mingw-w64
- name: Set up Go
uses: actions/setup-go@v5
with:
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ before:
builds:
- env:
- CGO_ENABLED=1
- CC_windows_amd64=x86_64-w64-mingw32-gc
- CXX_windows_amd64=x86_64-w64-mingw32-g++
goos:
- windows
goarch:
Expand Down

0 comments on commit eb340f9

Please sign in to comment.