Repository navigation
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
118 lines (111 loc) · 2.92 KB
/
Copy path.goreleaser.yaml
File metadata and controls
118 lines (111 loc) · 2.92 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
118
version: 2
project_name: gogcli
changelog:
# Required for --release-notes: disabling this pipe discards the file.
disable: false
release:
draft: true
name_template: "{{ .Tag }}"
target_commitish: "{{ .Commit }}"
snapshot:
version_template: '{{ if index .Env "GOG_PILOT_VERSION" }}{{ index .Env "GOG_PILOT_VERSION" }}{{ else }}{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}{{ end }}'
builds:
- id: gog
main: ./cmd/gog
binary: gog
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags: >-
-s -w
-X github.com/openclaw/gogcli/internal/cmd.version={{ .Tag }}
-X github.com/openclaw/gogcli/internal/cmd.commit={{ if index .Env "GOG_COMMIT" }}{{ index .Env "GOG_COMMIT" }}{{ else }}{{ .ShortCommit }}{{ end }}
-X github.com/openclaw/gogcli/internal/cmd.date={{ .CommitDate }}
env:
- CGO_ENABLED=0
- "GOCACHEPROG="
- "GODEBUG="
- GO111MODULE=on
- GOAUTH=off
- GOENV=off
- "GOEXPERIMENT="
- "GOFLAGS="
- GOFIPS140=off
- "GOINSECURE="
- GOAMD64=v1
- GOARM64=v8.0
- "GONOPROXY="
- "GONOSUMDB="
- "GOPRIVATE="
- GOPROXY=https://proxy.golang.org
- "GOROOT="
- GOSUMDB=sum.golang.org
- GOTOOLCHAIN=local
- GOWORK=off
targets:
- linux_amd64
- linux_arm64
- windows_amd64
- windows_arm64
- id: gog_darwin
main: ./cmd/gog
binary: gog
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags: >-
-s -w
-X github.com/openclaw/gogcli/internal/cmd.version={{ .Tag }}
-X github.com/openclaw/gogcli/internal/cmd.commit={{ if index .Env "GOG_COMMIT" }}{{ index .Env "GOG_COMMIT" }}{{ else }}{{ .ShortCommit }}{{ end }}
-X github.com/openclaw/gogcli/internal/cmd.date={{ .CommitDate }}
env:
- AR=/usr/bin/ar
- CC=/usr/bin/clang
- CXX=/usr/bin/clang++
- CGO_CFLAGS=-O2 -g
- "CGO_CPPFLAGS="
- CGO_CXXFLAGS=-O2 -g
- CGO_ENABLED=1
- CGO_LDFLAGS=-O2 -g
- "GOCACHEPROG="
- "GODEBUG="
- GO111MODULE=on
- GOAUTH=off
- GOENV=off
- "GOEXPERIMENT="
- "GOFLAGS="
- GOFIPS140=off
- "GOINSECURE="
- GOAMD64=v1
- GOARM64=v8.0
- "GONOPROXY="
- "GONOSUMDB="
- "GOPRIVATE="
- GOPROXY=https://proxy.golang.org
- "GOROOT="
- GOSUMDB=sum.golang.org
- GOTOOLCHAIN=local
- GOWORK=off
- PKG_CONFIG=/usr/bin/false
- "PKG_CONFIG_LIBDIR="
- "PKG_CONFIG_PATH="
targets:
- darwin_amd64
- darwin_arm64
archives:
- ids:
- gog
- gog_darwin
builds_info:
mtime: "{{ .CommitDate }}"
files:
- "none*"
formats:
- tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
formats:
- zip
checksum:
name_template: checksums.txt