From 706b73173faa6ed6cf19631fb15d071b498f0428 Mon Sep 17 00:00:00 2001 From: aichy Date: Fri, 16 Dec 2022 19:26:32 +0800 Subject: [PATCH] update .goreleaser --- .goreleaser.yaml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a8343095..ae7edac9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -40,23 +40,36 @@ builds: - linux goarch: - arm64 - # - id: darwin-arm64 + # - id: darwin # main: ./cmd/answer/. # binary: answer # goos: # - darwin + # ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser + #todo + # - id: darwin-arm64 + # main: ./cmd/answer/. + # binary: answer + # env: + # - CC=oa64-clang + # - CXX=oa64-clang++ + # 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" + # ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser # flags: -v # - id: darwin-amd64 # main: ./cmd/answer/. # binary: answer + # env: + # - CC=o64-clang + # - CXX=o64-clang++ # 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" + # - amd64 + # ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser # flags: -v