Skip to content

Commit

Permalink
add arm8 x64 builds to goreleaser
Browse files Browse the repository at this point in the history
- Also fix goreleaser builds, as the earlier refactor broke it.
- Note: we disable x32 for darwin since that's an invalid pair
  • Loading branch information
issmirnov committed Feb 21, 2021
1 parent 0ce9172 commit a3ced18
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
# https://github.com/goreleaser/goreleaser/blob/master/.goreleaser.yml
build:
main: .
main: ./cmd/main.go
binary: zap
goos:
- darwin
- linux
goarch:
- amd64
- 386
- arm64
ignore:
- goos: darwin
goarch: 386
ldflags:
- -s -w
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
archives:
- id: main
- id: cmd
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
replacements:
amd64: 64-bit
386: 32-bit
darwin: MacOS
linux: Linux
arm64: Arm
files:
- c.yml
- README.md
Expand Down

0 comments on commit a3ced18

Please sign in to comment.