forked from bruin-data/ingestr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
117 lines (112 loc) · 2.64 KB
/
Copy path.goreleaser.yaml
File metadata and controls
117 lines (112 loc) · 2.64 KB
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
117
version: 2
project_name: ingestr
before:
hooks:
- make generate
builds:
- id: ingestr-darwin-amd64
binary: ingestr
ldflags:
- -s -w -X github.com/bruin-data/ingestr/cmd.Version={{ .Env.VERSION }} -X main.commit={{ .Env.COMMIT_SHA }}
main: ./
goarch:
- amd64
goos:
- darwin
env:
- CC=o64-clang
- CXX=o64-clang++
- CGO_ENABLED=1
- MACOSX_DEPLOYMENT_TARGET=10.15
flags:
- -trimpath
- id: ingestr-darwin-arm64
binary: ingestr
ldflags:
- -s -w -X github.com/bruin-data/ingestr/cmd.Version={{ .Env.VERSION }} -X main.commit={{ .Env.COMMIT_SHA }}
main: ./
goarch:
- arm64
goos:
- darwin
env:
- CC=o64-clang
- CXX=o64-clang++
- CGO_ENABLED=1
- MACOSX_DEPLOYMENT_TARGET=10.15
flags:
- -trimpath
- id: ingestr-linux-amd64
binary: ingestr
main: ./
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
- CGO_ENABLED=1
goarch:
- amd64
goos:
- linux
flags:
- -trimpath
ldflags:
- -s -w -X github.com/bruin-data/ingestr/cmd.Version={{ .Env.VERSION }} -X main.commit={{ .Env.COMMIT_SHA }}
- id: ingestr-linux-arm64
binary: ingestr
main: ./
goarch:
- arm64
goos:
- linux
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
- CGO_ENABLED=1
flags:
- -trimpath
ldflags:
- -s -w -X github.com/bruin-data/ingestr/cmd.Version={{ .Env.VERSION }} -X main.commit={{ .Env.COMMIT_SHA }}
- id: ingestr-windows-amd64
binary: ingestr
main: ./
goarch:
- amd64
goos:
- windows
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_ENABLED=1
- CGO_LDFLAGS=-static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lwinpthread -Wl,-Bdynamic
ldflags:
- -s -w -X github.com/bruin-data/ingestr/cmd.Version={{ .Env.VERSION }} -X main.commit={{ .Env.COMMIT_SHA }} -extldflags=-static
flags:
- -trimpath
- -buildmode=exe
release:
make_latest: true
prerelease: false
archives:
- format: tar.gz
builds:
- "ingestr-linux-arm64"
- "ingestr-linux-amd64"
- "ingestr-darwin-amd64"
- "ingestr-darwin-arm64"
- "ingestr-windows-amd64"
name_template: >-
ingestr_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"