Skip to content

Commit 8282c8d

Browse files
committed
add goreleaser
1 parent a46cf04 commit 8282c8d

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/avahi-proxy
2+
3+
dist/

.goreleaser.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
4+
# The lines below are called `modelines`. See `:help modeline`
5+
# Feel free to remove those if you don't want/need to use them.
6+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
8+
9+
version: 2
10+
11+
before:
12+
hooks:
13+
# You may remove this if you don't use go modules.
14+
- go mod tidy
15+
# you may remove this if you don't need go generate
16+
- go generate ./...
17+
18+
builds:
19+
- env:
20+
- CGO_ENABLED=0
21+
goos:
22+
- linux
23+
goarch:
24+
- arm
25+
- arm64
26+
- amd64
27+
- 386
28+
goarm:
29+
- 6
30+
- 7
31+
32+
33+
archives:
34+
- format: tar.gz
35+
# this name template makes the OS and Arch compatible with the results of `uname`.
36+
name_template: >-
37+
{{ .ProjectName }}_
38+
{{- title .Os }}_
39+
{{- if eq .Arch "amd64" }}x86_64
40+
{{- else if eq .Arch "386" }}i386
41+
{{- else }}{{ .Arch }}{{ end }}
42+
{{- if .Arm }}v{{ .Arm }}{{ end }}
43+
44+
changelog:
45+
sort: asc
46+
filters:
47+
exclude:
48+
- "^docs:"
49+
- "^test:"

0 commit comments

Comments
 (0)