-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yaml
51 lines (45 loc) · 1.03 KB
/
.goreleaser.yaml
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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
report_sizes: true
sboms:
- artifacts: archive
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 ./...
gomod:
# configured for verifiable builds
proxy: true
env:
- GOPROXY=https://proxy.golang.org,direct
- GOSUMDB=sum.golang.org
mod: mod
dir: '.'
builds:
- env:
- CGO_ENABLED=0
ldflags:
- s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser
gcflags:
- all=-l -B
#- all=-N -l # useful for remote execution of commands during debugging
goos:
- linux
- windows
goarch:
- amd64
- arm64
mod_timestamp: "{{.CommitTimestamp}}"
main: ./cmd/mechanic
#upx:
# - enabled: true
# goos:
# - linux
# - windows
# goarch:
# - amd64
# - arm64
# compress: best
# lzma: true