mirror of
https://github.com/schollz/croc.git
synced 2025-10-10 21:01:02 +02:00
fix: build
This commit is contained in:
parent
40ba0acbc8
commit
da8c1cd699
1 changed files with 3 additions and 1 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -89,7 +89,9 @@ jobs:
|
|||
- name: Build Windows 7 version
|
||||
run: |
|
||||
go version
|
||||
go get golang.org/x/sys@v0.33.0
|
||||
rm -rf go.mod go.sum
|
||||
go mod init github.com/schollz/croc/v10
|
||||
go mod tidy
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags '-extldflags "-static"' -o croc.exe
|
||||
zip croc_${{ github.event.release.name }}_Windows7-64bit.zip croc.exe
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags '-extldflags "-static"' -o croc.exe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue