Skip to content

Commit ca30bba

Browse files
committed
feat: Configure goreleaser to build ginji binary for multiple architectures and add Homebrew tap.
1 parent c267fb3 commit ca30bba

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.goreleaser.yaml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,50 @@
11
version: 2
22

3+
project_name: ginji
4+
35
before:
46
hooks:
57
- go mod tidy
68

79
builds:
8-
- env:
10+
- id: ginji
11+
main: .
12+
binary: ginji
13+
env:
914
- CGO_ENABLED=0
1015
goos:
1116
- linux
12-
- windows
1317
- darwin
18+
- windows
19+
goarch:
20+
- amd64
21+
- arm64
1422

1523
archives:
1624
- format: tar.gz
17-
# this name template makes the OS and Arch compatible with the results of uname.
1825
name_template: >-
1926
{{ .ProjectName }}_
2027
{{- title .Os }}_
2128
{{- if eq .Arch "amd64" }}x86_64
2229
{{- else if eq .Arch "386" }}i386
2330
{{- else }}{{ .Arch }}{{ end }}
2431
{{- if .Arm }}v{{ .Arm }}{{ end }}
25-
# use zip for windows archives
2632
format_overrides:
2733
- goos: windows
2834
format: zip
2935

36+
brews:
37+
- name: ginji
38+
repository:
39+
owner: ginjigo
40+
name: homebrew-tap
41+
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
42+
directory: Formula
43+
homepage: "https://github.com/ginjigo/ginji"
44+
description: "Ultra-fast, zero-dependency API framework for Go"
45+
test: |
46+
system "#{bin}/ginji version"
47+
3048
checksum:
3149
name_template: 'checksums.txt'
3250

cli

-11.8 MB
Binary file not shown.

0 commit comments

Comments
 (0)