mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
fix release.yml
This commit is contained in:
parent
38acf6f7e3
commit
146f6413a9
1 changed files with 14 additions and 10 deletions
24
.github/workflows/release.yml
vendored
24
.github/workflows/release.yml
vendored
|
@ -14,16 +14,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout project
|
- name: Checkout project
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: '1.20.7' # go1.20.8+ refuses to build go1.22 code...
|
|
||||||
- name: Build Windows 7
|
|
||||||
run: |
|
|
||||||
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
|
|
||||||
zip croc_${{ github.event.release.name }}_Windows7-32bit.zip croc.exe
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
|
@ -73,6 +63,20 @@ jobs:
|
||||||
tar -czvf croc_${{ github.event.release.name }}_OpenBSD-64bit.tar.gz croc LICENSE
|
tar -czvf croc_${{ github.event.release.name }}_OpenBSD-64bit.tar.gz croc LICENSE
|
||||||
CGO_ENABLED=0 GOOS=openbsd GOARCH=arm64 go build -ldflags '' -o croc
|
CGO_ENABLED=0 GOOS=openbsd GOARCH=arm64 go build -ldflags '' -o croc
|
||||||
tar -czvf croc_${{ github.event.release.name }}_OpenBSD-ARM64.tar.gz croc LICENSE
|
tar -czvf croc_${{ github.event.release.name }}_OpenBSD-ARM64.tar.gz croc LICENSE
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.20.7' # go1.20.8+ refuses to build go1.22 code...
|
||||||
|
- name: Build Windows 7
|
||||||
|
run: |
|
||||||
|
go version
|
||||||
|
rm 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
|
||||||
|
zip croc_${{ github.event.release.name }}_Windows7-32bit.zip croc.exe
|
||||||
- name: Create checksums.txt
|
- name: Create checksums.txt
|
||||||
run: |
|
run: |
|
||||||
touch croc_${{ github.event.release.name }}_checksums.txt
|
touch croc_${{ github.event.release.name }}_checksums.txt
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue