From 8e763e78861c7691a6ba8fbc444f450a339c3a32 Mon Sep 17 00:00:00 2001 From: Spiegel Date: Tue, 19 Dec 2023 21:45:30 +0900 Subject: [PATCH] Fix .goreleaser.yml --- .goreleaser.yml | 25 ++++++++++++++----------- Taskfile.yml | 2 +- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 6f3c63d..f0d87e3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,6 +8,7 @@ builds: - env: - GO111MODULE=on + - CGO_ENABLED=0 goos: - linux - darwin @@ -15,30 +16,32 @@ builds: - freebsd goarch: - amd64 - - arm - arm64 + - riscv64 main: ./ flags: - -trimpath ldflags: -s -w -X github.com/goark/gpgpdump/facade.Version=v{{ .Version }} binary: gpgpdump +source: + rlcp: true archives: - format: tar.gz format_overrides: - goos: windows format: zip - name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' - replacements: - amd64: 64bit - 386: 32bit - arm: ARM - arm64: ARM64 - darwin: macOS - linux: Linux - windows: Windows - freebsd: FreeBSD + name_template: >- + {{ .Binary }}_ + {{- .Version }}_ + {{- if eq .Os "freebsd" }}FreeBSD + {{- else }}{{ title .Os }}{{ end }}_ + {{- if eq .Arch "amd64" }}64bit + {{- else if eq .Arch "386" }}32bit + {{- else if eq .Arch "arm64" }}ARM64 + {{- else if eq .Arch "riscv64" }}RISCV + {{- else }}{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ end }} files: - LICENSE* - README* diff --git a/Taskfile.yml b/Taskfile.yml index 65b6af0..fed3ab5 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -11,7 +11,7 @@ tasks: build-all: desc: Build executable binary with GoReleaser. cmds: - - goreleaser --snapshot --skip-publish --clean + - goreleaser --snapshot --skip=publish --clean test: desc: Test and lint.