-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser-Linux.yml
116 lines (106 loc) · 2.49 KB
/
.goreleaser-Linux.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
113
114
115
116
version: 2
project_name: consumer
env:
- GO111MODULE=on
before:
hooks:
- go mod download
builds:
- id: consumer
binary: consumer
main: ./consumer/consumer.go
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=1
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
flags:
- -trimpath
ldflags:
- -extldflags "-lc -lrt -lpthread --static"
- -s -w -X main.version={{ .Version }}
- id: consumer-linux-arm64
binary: consumer
main: ./consumer/consumer.go
goarch:
- arm64
goos:
- linux
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
flags:
- -trimpath
ldflags:
- -extldflags "-lc -lrt -lpthread --static"
- -s -w -X main.version={{ .Version }}
- id: consumer-windows-amd64
binary: consumer
main: ./consumer/consumer.go
goarch:
- amd64
goos:
- windows
env:
- CGO_ENABLED=1
- CGO_LDFLAGS=-fstack-protector
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
flags:
- -trimpath
- -buildmode=exe
archives:
- files:
- README.md
format_overrides:
- format: zip
goos: windows
id: consumer
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{if .Arm}}_{{.Arm}}{{end}}"
nfpms:
- builds:
- consumer
vendor: AndriyKalashnykov
homepage: https://github.com/andriykalashnykov/go-kafka-confluent-examples
maintainer: "Andriy Kalashnykov <[email protected]>"
description: "Confluent Kafka Cloud Consumer in Go"
license: GPL-3.0
file_name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{if .Arm}}_{{.Arm}}{{end}}"
formats:
- apk
- deb
- rpm
bindir: /usr/bin
checksum:
name_template: "checksums-linux.txt"
changelog:
sort: asc
use: github
filters:
exclude:
- '^test:'
- '^chore'
- 'merge conflict'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
groups:
- title: Dependency updates
regexp: '^.*?(feat|fix)\(deps\)!?:.+$'
order: 300
- title: 'New Features'
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: 'Bug fixes'
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: 'Documentation updates'
regexp: ^.*?doc(\([[:word:]]+\))??!?:.+$
order: 400
- title: Other work
order: 9999