This commit is contained in:
aichy 2022-12-16 18:41:07 +08:00
parent 69de818d77
commit 6e38c58f98
1 changed files with 27 additions and 3 deletions

View File

@ -1,3 +1,9 @@
env:
- GO11MODULE=on
- GO111MODULE=on
- GOPROXY=https://goproxy.io
- CGO_ENABLED=1
before:
hooks:
- go mod tidy
@ -7,7 +13,6 @@ builds:
binary: answer
ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
goos:
- darwin
- linux
goarch:
- amd64
@ -32,10 +37,28 @@ builds:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
goos:
- darwin
- linux
goarch:
- 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:
- replacements:
@ -56,5 +79,6 @@ changelog:
# sudo apt-get install build-essential
# sudo apt-get install gcc-multilib g++-multilib
# 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