Skip to content

Commit

Permalink
Add goreleaser config (#24)
Browse files Browse the repository at this point in the history
* Add goreleaser config

* Changes
  • Loading branch information
joohoi authored May 6, 2021
1 parent cdb9ab0 commit 3a6ef5b
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- id: pencode
binary: pencode
flags:
- -trimpath
env:
- CGO_ENABLED=0
asmflags:
- all=-trimpath={{.Env.GOPATH}}
gcflags:
- all=-trimpath={{.Env.GOPATH}}
ldflags:
-s -w -extldflags '-static'
goos:
- linux
- windows
- darwin
- freebsd
- openbsd
goarch:
- amd64
- 386
- arm
- arm64
main: ./cmd/pencode
ignore:
- goos: darwin
goarch: 386
archives:
- replacements:
darwin: macOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
id: tgz
format: tar.gz
format_overrides:
- goos: windows
format: zip
- goos: darwin
format: zip

checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit 3a6ef5b

Please sign in to comment.