-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
136 lines (133 loc) · 3.1 KB
/
.goreleaser.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
version: 2
builds:
- main: ./cmd/postfix_exporter
ldflags: |
-s
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.FullCommit}}
-X github.com/prometheus/common/version.Branch={{.Branch}}
-X github.com/prometheus/common/version.BuildUser={{.Env.USER}}@{{.Env.HOSTNAME}}
-X github.com/prometheus/common/version.BuildDate={{time "20060102-15:04:05"}}
tags:
- netgo
targets:
# - aix_ppc64
- darwin_amd64
- darwin_arm64
- dragonfly_amd64
- freebsd_386
- freebsd_amd64
- freebsd_arm64
- freebsd_arm_6
- freebsd_arm_7
- illumos_amd64
- linux_386
- linux_amd64
- linux_arm64
- linux_arm_5
- linux_arm_6
- linux_arm_7
- linux_mips
- linux_mips64
- linux_mips64le
- linux_mipsle
- linux_ppc64
- linux_ppc64le
- linux_riscv64
- linux_s390x
- netbsd_386
- netbsd_amd64
- netbsd_arm64
- netbsd_arm_6
- netbsd_arm_7
- openbsd_386
- openbsd_amd64
- openbsd_arm64
- openbsd_arm_7
- windows_386
- windows_amd64
- windows_arm64
overrides:
- goos: linux
goarch: '386'
go386: sse2
env:
- CGO_ENABLED=1
- CC=i686-linux-gnu-gcc
- goos: linux
goarch: amd64
goamd64: v1
env:
- CGO_ENABLED=1
- CC=x86_64-linux-gnu-gcc
- goos: linux
goarch: arm64
goarm64: v8.0
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
- goos: linux
goarch: arm
goarm: '5'
env:
- CGO_ENABLED=1
- CC=arm-linux-gnueabi-gcc
- goos: linux
goarch: arm
goarm: '6'
env:
- CGO_ENABLED=1
- CC=arm-linux-gnueabi-gcc
- goos: linux
goarch: arm
goarm: '7'
env:
- CGO_ENABLED=1
- CC=arm-linux-gnueabi-gcc
- goos: linux
goarch: mips
gomips: hardfloat
env:
- CGO_ENABLED=1
- CC=mips-linux-gnu-gcc
- goos: linux
goarch: mips64
gomips: hardfloat
env:
- CGO_ENABLED=1
- CC=mips64-linux-gnuabi64-gcc
- goos: linux
goarch: mips64le
gomips: hardfloat
env:
- CGO_ENABLED=1
- CC=mips64el-linux-gnuabi64-gcc
- goos: linux
goarch: mipsle
gomips: hardfloat
env:
- CGO_ENABLED=1
- CC=mipsel-linux-gnu-gcc
- goos: linux
goarch: ppc64le
goppc64: power8
env:
- CGO_ENABLED=1
- CC=powerpc64le-linux-gnu-gcc
- goos: linux
goarch: riscv64
goriscv64: rva20u64
env:
- CGO_ENABLED=1
- CC=riscv64-linux-gnu-gcc
- goos: linux
goarch: s390x
env:
- CGO_ENABLED=1
- CC=s390x-linux-gnu-gcc
archives:
- format_overrides:
- goos: windows
format: zip
release:
prerelease: auto