Skip to content

Commit

Permalink
misc: add goamd64 version to goreleaser config and ...
Browse files Browse the repository at this point in the history
* add more OS
* add more arch
* add macos universal binary
  • Loading branch information
hugefiver committed Jul 11, 2024
1 parent ed4e459 commit 5820d48
Showing 1 changed file with 49 additions and 10 deletions.
59 changes: 49 additions & 10 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,47 @@ builds:
- darwin
- linux
- openbsd
- freebsd
- netbsd
- plan9
- dragonfly
- solaris
goarch:
- '386'
- "386"
- amd64
- arm
- arm64
- mips64
- mips64le
- mips
- riscv64
goarm:
- '6'
- '7'

- "6"
- "7"
goamd64:
- v1
- v2
- v3
ignore:
- goos: darwin
goarch: amd64
goamd64: v2

- <<: *default
id: snapshot
skip: true
flags:
- -trimpath
ldflags:
- -s -w

- <<: *default
id: default
skip: false
flags:
- -trimpath
- <<: *default

- <<: *default
id: nogitserver
skip: false
flags:
Expand All @@ -44,15 +69,29 @@ archives:
- id: default
builds:
- default
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
- snapshot
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if not (eq .Amd64 \"v1\") }}{{ .Amd64 }}{{ end }}"
format_overrides:
- goos: windows
format: zip

- id: nogitserver
builds:
- nogitserver
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}_nogitserver"
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if not (eq .Amd64 \"v1\") }}{{ .Amd64 }}{{ end }}_nogitserver"
format_overrides:
- goos: windows
format: zip
format: zip

- id: macos_universal
builds:
- macos_universal
name_template: "{{ .ProjectName }}_{{ .Version }}_macosuniversal"

universal_binaries:
- id: macos_universal
ids:
- default
- snapshot
replace: false
name_template: "{{ .ProjectName }}_{{ .Version }}_macos_universal"

0 comments on commit 5820d48

Please sign in to comment.