-
Notifications
You must be signed in to change notification settings - Fork 30
/
.goreleaser.yml
84 lines (84 loc) · 1.76 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- wget -c https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt
# - wget -c http://ftp.apnic.net/stats/apnic/delegated-apnic-latest
# - cat delegated-apnic-latest | awk -F '|' '/CN/&&/ipv4/ {print $4 "/" 32-log($5)/log(2)}' > cnip.txt
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/
ldflags:
- -X main.VERSION={{.Version}} -s -w
goos:
- windows
- darwin
- linux
- freebsd
goarch:
- amd64
- 386
- arm
- arm64
- mips
- mipsle
- mips64
- mips64le
goarm:
- 6
- 7
gomips:
- hardfloat
- softfloat
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: windows
goarch: 386
- goos: darwin
goarch: arm
- goos: darwin
goarch: arm64
- goos: darwin
goarch: 386
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
- goos: freebsd
goarch: 386
- goarch: mips64
gomips: hardfloat
- goarch: mips64
gomips: softfloat
- goarch: mips64le
gomips: hardfloat
- goarch: mips64le
gomips: softfloat
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- README*.md
- LICENSE
- ts-dns*.toml
- gfwlist.txt
- cnip.txt
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'