-
Notifications
You must be signed in to change notification settings - Fork 272
Expand file tree
/
Copy path.goreleaser.yml
More file actions
63 lines (61 loc) · 1.3 KB
/
.goreleaser.yml
File metadata and controls
63 lines (61 loc) · 1.3 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
version: 2
project_name: mage
release:
github:
owner: magefile
name: mage
draft: true
builds:
- binary: mage
main: .
ldflags: -s -w
goos:
- darwin
- linux
- windows
- freebsd
- netbsd
- openbsd
- dragonfly
goarch:
- amd64
- arm
- arm64
ignore:
- goos: openbsd
goarch: arm
goarm: 6
- goos: windows # goreleaser says this is a broken build
goarch: arm
goarm: 6
env:
- CGO_ENABLED=0
archives:
-
name_template: >-
{{.Binary}}_{{.Version}}_
{{- if eq .Os "darwin"}}macOS
{{- else if eq .Os "linux"}}Linux
{{- else if eq .Os "windows"}}Windows
{{- else if eq .Os "freebsd"}}FreeBSD
{{- else if eq .Os "netbsd"}}NetBSD
{{- else if eq .Os "openbsd"}}OpenBSD
{{- else if eq .Os "dragonfly"}}DragonFlyBSD
{{- else}}{{.Os}}{{end}}-
{{- if eq .Arch "amd64"}}64bit
{{- else if eq .Arch "386"}}32bit
{{- else if eq .Arch "arm"}}ARM
{{- else if eq .Arch "arm64"}}ARM64
{{- else}}{{.Arch}}{{end}}
formats:
- tar.gz
format_overrides:
- goos: windows
formats:
- zip
files:
- LICENSE
snapshot:
version_template: SNAPSHOT-{{ .Commit }}
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'