forked from webrpc/webrpc
-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (92 loc) · 2.98 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
# See documentation at https://goreleaser.com/customization/build.
project_name: webrpc
builds:
- id: webrpc-gen
main: ./cmd/webrpc-gen
binary: webrpc-gen
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w -X github.com/webrpc/webrpc.VERSION=v{{.Version}}
- id: webrpc-test
main: ./cmd/webrpc-test
binary: webrpc-test
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w -X github.com/webrpc/webrpc.VERSION=v{{.Version}}
archives:
- id: webrpc-gen
builds:
- webrpc-gen
name_template: "{{ .Binary }}.{{ .Os }}-{{ .Arch }}"
format: binary
- id: webrpc-test
builds:
- webrpc-test
name_template: "{{ .Binary }}.{{ .Os }}-{{ .Arch }}"
format: binary
checksum:
name_template: "checksums.txt"
release:
footer: |
## Docker
```
docker pull ghcr.io/webrpc/webrpc-gen:v{{.Version}}
```
Example: `docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v{{.Version}} -schema=$PWD/api.ridl -target=golang`
## Homebrew
```
brew tap webrpc/tap
brew install webrpc-gen
```
## Build from source
```
go install -ldflags="-s -w -X github.com/webrpc/webrpc.VERSION=v{{.Version}}" github.com/webrpc/webrpc/cmd/webrpc-gen@v{{.Version}}
```
## Download binaries
macOS: [amd64](https://github.com/webrpc/webrpc/releases/download/v{{.Version}}/webrpc-gen.darwin-amd64), [arm64](https://github.com/webrpc/webrpc/releases/download/v{{.Version}}/webrpc-gen.darwin-arm64) (Apple Silicon)
Linux: [amd64](https://github.com/webrpc/webrpc/releases/download/v{{.Version}}/webrpc-gen.linux-amd64), [arm64](https://github.com/webrpc/webrpc/releases/download/v{{.Version}}/webrpc-gen.linux-arm64)
Windows: [amd64](https://github.com/webrpc/webrpc/releases/download/v{{.Version}}/webrpc-gen.windows-amd64.exe), [arm64](https://github.com/webrpc/webrpc/releases/download/v{{.Version}}/webrpc-gen.windows-arm64.exe)
changelog:
use: github
sort: asc
brews:
- name: webrpc-gen
ids:
- webrpc-gen
tap:
owner: webrpc
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/webrpc/webrpc"
description: "generate source code for your target language from webrpc schema"
license: "MIT"
- name: webrpc-test
ids:
- webrpc-test
tap:
owner: webrpc
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/webrpc/webrpc"
description: "generate source code for your target language from webrpc schema"
license: "MIT"