-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.goreleaser.yml
112 lines (105 loc) · 2.5 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
before:
hooks:
- go mod tidy
builds:
- id: amd64-server
env:
- cgo_enabled=1
goos:
- linux
goarch:
- amd64
dir: ./cmd/autoygg-server
binary: autoygg-server
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X github.com/massmesh/autoygg/internal.version=v{{.Version}}
- id: amd64-server-static
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
dir: ./cmd/autoygg-server
binary: autoygg-server-amd64-static
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -extldflags "-static" -X github.com/massmesh/autoygg/internal.Version=v{{.Version}}
- id: arm64-server
env:
- CGO_ENABLED=1
# Needs to have the gcc-aarch64-linux-gnu package installed.
- CC=aarch64-linux-gnu-gcc
goos:
- linux
goarch:
- arm64
dir: ./cmd/autoygg-server
binary: autoygg-server-arm64
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X github.com/massmesh/autoygg/internal.Version=v{{.Version}}
- id: amd64-client
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
dir: ./cmd/autoygg-client
binary: autoygg-client
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X github.com/massmesh/autoygg/internal.Version=v{{.Version}}
- id: rpi4-client
env:
- CGO_ENABLED=0
# - CC=aarch64-linux-gnu-gcc
goos:
- linux
goarch:
- arm64
dir: ./cmd/autoygg-client
binary: autoygg-client-rpi4
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -v
ldflags:
- -s -w -X github.com/massmesh/autoygg/internal.Version=v{{.Version}}
- id: rpi3-client
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- arm
goarm:
- 7
dir: ./cmd/autoygg-client
mod_timestamp: "{{ .CommitTimestamp }}"
binary: autoygg-client-rpi3
ldflags:
- -s -w -X github.com/massmesh/autoygg/internal.Version=v{{.Version}}
archives:
- id: golang-cross
builds:
- amd64-server
- amd64-server-static
- arm64-server
- amd64-client
- rpi4-client
- rpi3-client
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
allow_different_binary_count: true
format: binary
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'