1
0
Fork 0
forked from External/ergo

Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Shivaram Lingamneni
ae704b7db4 update to goreleaser v2
* goreleaser version must be specified in .goreleaser.yml
* --skip-publish is replaced by --skip=publish
2024-06-09 04:25:23 -04:00
Shivaram Lingamneni
68d8383647 update goreleaser config:
* --rm-dist is replaced by --clean
* `replacements` is removed:
   https://goreleaser.com/deprecations/#archivesreplacements
2024-06-09 04:17:07 -04:00
2 changed files with 7 additions and 5 deletions

View file

@ -1,5 +1,6 @@
# .goreleaser.yml
# Build customization
version: 2
project_name: ergo
builds:
- main: ergo.go
@ -43,11 +44,12 @@ builds:
archives:
-
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
name_template: >-
{{ .ProjectName }}-{{ .Version }}-
{{- if eq .Os "darwin" }}macos{{- else }}{{ .Os }}{{ end -}}-
{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end -}}
{{ if .Arm }}v{{ .Arm }}{{ end -}}
format: tar.gz
replacements:
amd64: x86_64
darwin: macos
format_overrides:
- goos: windows
format: zip

View file

@ -18,7 +18,7 @@ build:
go build -v -ldflags "-X main.commit=$(GIT_COMMIT) -X main.version=$(GIT_TAG)"
release:
goreleaser --skip-publish --rm-dist
goreleaser --skip=publish --clean
capdefs:
python3 ./gencapdefs.py > ${capdef_file}