Skip to content

Commit 2f0555e

Browse files
committed
Add goreleaser config file.
1 parent f6f1b67 commit 2f0555e

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/ellycache
2+
3+
dist/

.goreleaser.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
version: 2
2+
3+
builds:
4+
- binary: ellycache
5+
targets:
6+
- darwin_amd64
7+
- darwin_arm64
8+
- linux_amd64
9+
- linux_arm64
10+
- linux_arm
11+
- windows_amd64
12+
flags:
13+
- -a
14+
- -trimpath
15+
ldflags:
16+
- -s -w -X main.version={{.Version}} -X main.githead={{.ShortCommit}} -extldflags "-static"
17+
env:
18+
- CGO_ENABLED=0
19+
20+
archives:
21+
- format: tar.gz
22+
name_template: >-
23+
{{ .ProjectName }}_
24+
{{- .Os }}_
25+
{{- if eq .Arch "amd64" }}x86_64
26+
{{- else if eq .Arch "386" }}i386
27+
{{- else }}{{ .Arch }}{{ end }}
28+
{{- if .Arm }}v{{ .Arm }}{{ end }}
29+
format_overrides:
30+
- goos: windows
31+
format: zip
32+
files:
33+
- README.md
34+
- LICENSE
35+
wrap_in_directory: true
36+
37+
changelog:
38+
sort: asc
39+
filters:
40+
exclude:
41+
- "^docs:"
42+
- "^test:"
43+
44+
release:
45+
draft: true
46+
github:
47+
owner: rapidloop
48+
name: ellycache
49+
name_template: 'Release {{.Version}}'
50+
checksum:

0 commit comments

Comments
 (0)