mirror of https://gitee.com/answerdev/answer.git
update
This commit is contained in:
parent
69de818d77
commit
6e38c58f98
|
@ -1,3 +1,9 @@
|
||||||
|
env:
|
||||||
|
- GO11MODULE=on
|
||||||
|
- GO111MODULE=on
|
||||||
|
- GOPROXY=https://goproxy.io
|
||||||
|
- CGO_ENABLED=1
|
||||||
|
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
@ -7,7 +13,6 @@ builds:
|
||||||
binary: answer
|
binary: answer
|
||||||
ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.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
|
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
|
@ -32,10 +37,28 @@ builds:
|
||||||
- CC=aarch64-linux-gnu-gcc
|
- CC=aarch64-linux-gnu-gcc
|
||||||
- CXX=aarch64-linux-gnu-g++
|
- CXX=aarch64-linux-gnu-g++
|
||||||
goos:
|
goos:
|
||||||
- darwin
|
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
- arm64
|
- arm64
|
||||||
|
# - id: darwin-arm64
|
||||||
|
# main: ./cmd/answer/.
|
||||||
|
# binary: answer
|
||||||
|
# goos:
|
||||||
|
# - darwin
|
||||||
|
# goarch:
|
||||||
|
# - arm64
|
||||||
|
# ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser -extldflags "-static"
|
||||||
|
# flags: -v
|
||||||
|
# - id: darwin-amd64
|
||||||
|
# main: ./cmd/answer/.
|
||||||
|
# binary: answer
|
||||||
|
# goos:
|
||||||
|
# - darwin
|
||||||
|
# goarch:
|
||||||
|
# - arm64
|
||||||
|
# ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser -extldflags "-static"
|
||||||
|
# flags: -v
|
||||||
|
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- replacements:
|
- replacements:
|
||||||
|
@ -56,5 +79,6 @@ changelog:
|
||||||
# sudo apt-get install build-essential
|
# sudo apt-get install build-essential
|
||||||
# sudo apt-get install gcc-multilib g++-multilib
|
# sudo apt-get install gcc-multilib g++-multilib
|
||||||
# sudo apt-get install gcc-mingw-w64
|
# sudo apt-get install gcc-mingw-w64
|
||||||
# sudo apt-get -y install gcc-aarch64-linux-gnu
|
# sudo apt-get -y install gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf
|
||||||
|
# sudo apt-get install clang llvm
|
||||||
# goreleaser release --snapshot --rm-dist
|
# goreleaser release --snapshot --rm-dist
|
Loading…
Reference in New Issue