Skip to content

Commit

Permalink
ci: separated 64-bit and 32-bit windows builds and filtered winget bu…
Browse files Browse the repository at this point in the history
…ild for 64-bit
  • Loading branch information
achannarasappa committed Jan 7, 2025
1 parent 252d542 commit 82ffdd8
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,47 @@ builds:
- upx "{{ .Path }}"
ldflags:
- -s -w -X 'github.com/achannarasappa/ticker/v4/cmd.Version={{.Version}}'
- id: build
- id: build-mac
main: ./main.go
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
ldflags:
- -s -w -X 'github.com/achannarasappa/ticker/v4/cmd.Version={{.Version}}'
- id: build-windows-64
main: ./main.go
env:
- CGO_ENABLED=0
goarch:
- amd64
goos:
- windows
ldflags:
- -s -w -X 'github.com/achannarasappa/ticker/v4/cmd.Version={{.Version}}'
- id: build-windows-32
main: ./main.go
env:
- CGO_ENABLED=0
goarch:
- 386
goos:
- windows
ldflags:
- -s -w -X 'github.com/achannarasappa/ticker/v4/cmd.Version={{.Version}}'
archives:
- id: release
- id: release-winget
format: zip
builds:
- build-windows-64
name_template: >-
{{- .ProjectName }}-
{{- .Version }}-
{{- if eq .Os "darwin" }}mac
{{- else}}{{ .Os }}{{ end }}-
{{- .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}
{{- if .Mips }}-{{ .Mips }}{{ end }}
- id: tar-release
- id: release
format: tar.gz
name_template: >-
{{- .ProjectName }}-
Expand Down

0 comments on commit 82ffdd8

Please sign in to comment.