Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

update

aichy6e38c58f9826
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index e5d7a28a..a8343095 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -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
\ No newline at end of file