-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yaml
78 lines (66 loc) · 1.79 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
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
builds:
- id: linux-amd64-build
binary: ax
goos:
- linux
goarch:
- amd64
# set the modified timestamp on the output binary to the git timestamp to ensure a reproducible build
mod_timestamp: &build-timestamp '{{ .CommitTimestamp }}'
env: &build-env
- CGO_ENABLED=0
ldflags: &build-ldflags |
-w
-s
-extldflags '-static'
-X main.Version={{.Version}}
- id: linux-arm64-build
binary: ax
goos:
- linux
goarch:
- arm64
mod_timestamp: *build-timestamp
env: *build-env
ldflags: *build-ldflags
- id: darwin-build
binary: ax
goos:
- darwin
goarch:
- amd64
- arm64
mod_timestamp: *build-timestamp
env: *build-env
ldflags: *build-ldflags
universal_binaries:
- id: darwin-build
- replace: true
archives:
- id: default-archive
builds:
- linux-amd64-build
- linux-arm64-build
- darwin-build
name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{- if eq .Os "darwin" -}}
macOS_{{- else -}}{{ .Os }}_{{- end -}}
{{- if eq .Arch "amd64" -}}x86_64{{- else if eq .Arch "all" -}}
universal{{- else -}}{{ .Arch }}{{- end -}}
{{- with .Arm }}v{{ . }}{{ end -}}
{{- with .Mips }}_{{ . }}{{ end -}}
{{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
brews:
- name: axolotl
repository:
owner: ArcadiaPower
name: homebrew-tap
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/ArcadiaPower/axolotl/"
description: "A helper utility for switching AWS profiles in subshells."
# SPDX identifier of the license.
license: "MIT"
dependencies:
- name: gimme-aws-creds
test: |
system "#{bin}/ax --version"