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 goreleaser

aichy2380d4c4c87a
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index bec98c98..5e29a012 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -2,9 +2,9 @@ before:
hooks:
- go mod tidy
builds:
- - id: build-linux
+ - id: build-amd64
main: ./cmd/answer/.
- binary: PrometheusAlert
+ binary: answer
ldflags: -s -w -X main.Version=${{.Version}} -X main.Revision={{.ShortCommit}} -X main.BuildDate={{.Date}} -X main.BuildUser=goreleaser
goos:
- darwin
@@ -14,7 +14,7 @@ builds:
# linux windows need cgomingw64-gcc
- id: build-windows
main: ./cmd/answer/.
- binary: PrometheusAlert
+ binary: answer
ldflags: -s -w -X main.Version=${{.Version}} -X main.Revision={{.ShortCommit}} -X main.BuildDate={{.Date}} -X main.BuildUser=goreleaser
env:
- CC=x86_64-w64-mingw32-gcc
@@ -24,9 +24,9 @@ builds:
goarch:
- amd64
# linux arm64 need cgo arm64
- - id: build-arm
+ - id: build-arm64
main: ./cmd/answer/.
- binary: PrometheusAlert
+ binary: answer
ldflags: -s -w -X main.Version=${{.Version}} -X main.Revision={{.ShortCommit}} -X main.BuildDate={{.Date}} -X main.BuildUser=goreleaser
env:
- CC=aarch64-linux-gnu-gcc
@@ -50,4 +50,11 @@ changelog:
filters:
exclude:
- '^docs:'
- - '^test:'
\ No newline at end of file
+ - '^test:'
+
+
+# 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
+# goreleaser release --snapshot --rm-dist
\ No newline at end of file