Skip to content

Commit 3a6ef5b

Browse files
authored
Add goreleaser config (#24)
* Add goreleaser config * Changes
1 parent cdb9ab0 commit 3a6ef5b

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.goreleaser.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
before:
2+
hooks:
3+
- go mod tidy
4+
- go generate ./...
5+
builds:
6+
- id: pencode
7+
binary: pencode
8+
flags:
9+
- -trimpath
10+
env:
11+
- CGO_ENABLED=0
12+
asmflags:
13+
- all=-trimpath={{.Env.GOPATH}}
14+
gcflags:
15+
- all=-trimpath={{.Env.GOPATH}}
16+
ldflags:
17+
-s -w -extldflags '-static'
18+
goos:
19+
- linux
20+
- windows
21+
- darwin
22+
- freebsd
23+
- openbsd
24+
goarch:
25+
- amd64
26+
- 386
27+
- arm
28+
- arm64
29+
main: ./cmd/pencode
30+
ignore:
31+
- goos: darwin
32+
goarch: 386
33+
archives:
34+
- replacements:
35+
darwin: macOS
36+
linux: Linux
37+
windows: Windows
38+
386: i386
39+
amd64: x86_64
40+
id: tgz
41+
format: tar.gz
42+
format_overrides:
43+
- goos: windows
44+
format: zip
45+
- goos: darwin
46+
format: zip
47+
48+
checksum:
49+
name_template: 'checksums.txt'
50+
snapshot:
51+
name_template: "{{ .Tag }}-next"
52+
changelog:
53+
sort: asc
54+
filters:
55+
exclude:
56+
- '^docs:'
57+
- '^test:'

0 commit comments

Comments
 (0)