-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy path.goreleaser.yml
50 lines (47 loc) · 971 Bytes
/
.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
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
- go run ./ --gen-config config-template.yaml
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
goarch:
- amd64
- arm
- arm64
- mipsle
- mips
- 386
gomips:
- hardfloat
- softfloat
goarm:
- 7
ignore:
- goos: windows
goarch: arm
goarm: 7
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}}
archives:
- id: mosdns-archive
builds:
- mosdns-cn
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}-{{ .Arm }}{{ end }}{{ if .Mips }}-{{ .Mips }}{{ end }}"
format: zip
files:
- config-template.yaml
- LICENSE
- README.md
changelog:
skip: true
snapshot:
name_template: "{{ .Tag }}-next"