mirror of https://gitee.com/answerdev/answer.git
update goreleaser
This commit is contained in:
parent
88e745c1d7
commit
c63fcf1dc9
|
@ -40,37 +40,30 @@ builds:
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
- arm64
|
- arm64
|
||||||
# - id: darwin
|
- id: build-darwin-arm64
|
||||||
# main: ./cmd/answer/.
|
main: ./cmd/answer/.
|
||||||
# binary: answer
|
binary: answer
|
||||||
# goos:
|
env:
|
||||||
# - darwin
|
- CC=oa64-clang
|
||||||
# ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
|
- CXX=oa64-clang++
|
||||||
#todo
|
goos:
|
||||||
# - id: darwin-arm64
|
- darwin
|
||||||
# main: ./cmd/answer/.
|
goarch:
|
||||||
# binary: answer
|
- arm64
|
||||||
# env:
|
ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
|
||||||
# - CC=oa64-clang
|
flags: -v
|
||||||
# - CXX=oa64-clang++
|
- id: build-darwin-amd64
|
||||||
# goos:
|
main: ./cmd/answer/.
|
||||||
# - darwin
|
binary: answer
|
||||||
# goarch:
|
env:
|
||||||
# - arm64
|
- CC=o64-clang
|
||||||
# ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
|
- CXX=o64-clang++
|
||||||
# flags: -v
|
goos:
|
||||||
# - id: darwin-amd64
|
- darwin
|
||||||
# main: ./cmd/answer/.
|
goarch:
|
||||||
# binary: answer
|
- amd64
|
||||||
# env:
|
ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
|
||||||
# - CC=o64-clang
|
flags: -v
|
||||||
# - CXX=o64-clang++
|
|
||||||
# goos:
|
|
||||||
# - darwin
|
|
||||||
# goarch:
|
|
||||||
# - amd64
|
|
||||||
# ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
|
|
||||||
# flags: -v
|
|
||||||
|
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
docker run \
|
||||||
|
--rm \
|
||||||
|
-e CGO_ENABLED=1 \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
-v `pwd`:/go/src/github.com/answerdev/answer \
|
||||||
|
-v `pwd`/sysroot:/sysroot \
|
||||||
|
-w /go/src/github.com/answerdev/answer \
|
||||||
|
goreleaser/goreleaser-cross \
|
||||||
|
--rm-dist --skip-validate --skip-publish
|
Loading…
Reference in New Issue