mirror of https://gitee.com/answerdev/answer.git
update goreleaser
This commit is contained in:
parent
2380d4c4c8
commit
69de818d77
|
@ -5,7 +5,7 @@ builds:
|
||||||
- id: build-amd64
|
- id: build-amd64
|
||||||
main: ./cmd/answer/.
|
main: ./cmd/answer/.
|
||||||
binary: answer
|
binary: answer
|
||||||
ldflags: -s -w -X main.Version=${{.Version}} -X main.Revision={{.ShortCommit}} -X main.BuildDate={{.Date}} -X main.BuildUser=goreleaser
|
ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
|
||||||
goos:
|
goos:
|
||||||
- darwin
|
- darwin
|
||||||
- linux
|
- linux
|
||||||
|
@ -15,7 +15,7 @@ builds:
|
||||||
- id: build-windows
|
- id: build-windows
|
||||||
main: ./cmd/answer/.
|
main: ./cmd/answer/.
|
||||||
binary: answer
|
binary: answer
|
||||||
ldflags: -s -w -X main.Version=${{.Version}} -X main.Revision={{.ShortCommit}} -X main.BuildDate={{.Date}} -X main.BuildUser=goreleaser
|
ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
|
||||||
env:
|
env:
|
||||||
- CC=x86_64-w64-mingw32-gcc
|
- CC=x86_64-w64-mingw32-gcc
|
||||||
- CXX=x86_64-w64-mingw32-g++
|
- CXX=x86_64-w64-mingw32-g++
|
||||||
|
@ -27,7 +27,7 @@ builds:
|
||||||
- id: build-arm64
|
- id: build-arm64
|
||||||
main: ./cmd/answer/.
|
main: ./cmd/answer/.
|
||||||
binary: answer
|
binary: answer
|
||||||
ldflags: -s -w -X main.Version=${{.Version}} -X main.Revision={{.ShortCommit}} -X main.BuildDate={{.Date}} -X main.BuildUser=goreleaser
|
ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
|
||||||
env:
|
env:
|
||||||
- CC=aarch64-linux-gnu-gcc
|
- CC=aarch64-linux-gnu-gcc
|
||||||
- CXX=aarch64-linux-gnu-g++
|
- CXX=aarch64-linux-gnu-g++
|
||||||
|
|
Loading…
Reference in New Issue