File tree 1 file changed +14
-10
lines changed
1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 14
14
steps :
15
15
- name : Checkout project
16
16
uses : actions/checkout@v4
17
- - name : Setup Go
18
- uses : actions/setup-go@v5
19
- with :
20
- go-version : ' 1.20.7' # go1.20.8+ refuses to build go1.22 code...
21
- - name : Build Windows 7
22
- run : |
23
- CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags '-extldflags "-static"' -o croc.exe
24
- zip croc_${{ github.event.release.name }}_Windows7-64bit.zip croc.exe
25
- CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags '-extldflags "-static"' -o croc.exe
26
- zip croc_${{ github.event.release.name }}_Windows7-32bit.zip croc.exe
27
17
- name : Setup Go
28
18
uses : actions/setup-go@v4
29
19
with :
73
63
tar -czvf croc_${{ github.event.release.name }}_OpenBSD-64bit.tar.gz croc LICENSE
74
64
CGO_ENABLED=0 GOOS=openbsd GOARCH=arm64 go build -ldflags '' -o croc
75
65
tar -czvf croc_${{ github.event.release.name }}_OpenBSD-ARM64.tar.gz croc LICENSE
66
+ - name : Setup Go
67
+ uses : actions/setup-go@v5
68
+ with :
69
+ go-version : ' 1.20.7' # go1.20.8+ refuses to build go1.22 code...
70
+ - name : Build Windows 7
71
+ run : |
72
+ go version
73
+ rm go.mod go.sum
74
+ go mod init github.com/schollz/croc/v10
75
+ go mod tidy
76
+ CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags '-extldflags "-static"' -o croc.exe
77
+ zip croc_${{ github.event.release.name }}_Windows7-64bit.zip croc.exe
78
+ CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags '-extldflags "-static"' -o croc.exe
79
+ zip croc_${{ github.event.release.name }}_Windows7-32bit.zip croc.exe
76
80
- name : Create checksums.txt
77
81
run : |
78
82
touch croc_${{ github.event.release.name }}_checksums.txt
You can’t perform that action at this time.
0 commit comments