forked from k1LoW/tbls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
105 lines (105 loc) · 2.68 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
before:
hooks:
- go mod download
- go mod tidy
builds:
-
id: tbls-darwin
hooks:
pre: packr2
post: packr2 clean
ldflags:
- -s -w -X github.com/k1LoW/tbls.version={{.Version}} -X github.com/k1LoW/tbls.commit={{.FullCommit}} -X github.com/k1LoW/tbls.date={{.Date}} -X github.com/k1LoW/tbls/version.Version={{.Version}}
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
-
id: tbls-linux
hooks:
pre: packr2
post: packr2 clean
ldflags:
- -s -w -X github.com/k1LoW/tbls.version={{.Version}} -X github.com/k1LoW/tbls.commit={{.FullCommit}} -X github.com/k1LoW/tbls.date={{.Date}} -X github.com/k1LoW/tbls/version.Version={{.Version}}
- -linkmode external
- -extldflags '-static'
env:
- CGO_ENABLED=1
- CC=/usr/local/bin/x86_64-linux-musl-cc # brew install FiloSottile/musl-cross/musl-cross
goos:
- linux
goarch:
- amd64
-
id: tbls-windows
hooks:
pre: packr2
post: packr2 clean
ldflags:
- -s -w -X github.com/k1LoW/tbls.version={{.Version}} -X github.com/k1LoW/tbls.commit={{.FullCommit}} -X github.com/k1LoW/tbls.date={{.Date}} -X github.com/k1LoW/tbls/version.Version={{.Version}}
- -extldflags '-static'
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc # brew install mingw-w64
goos:
- windows
goarch:
- amd64
archives:
-
id: tbls-archive
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
- goos: windows
format: zip
- goos: darwin
format: zip
files:
- CREDITS
- README.md
- CHANGELOG.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Version }}-next"
changelog:
skip: true
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
-
name: tbls
github:
owner: k1LoW
name: homebrew-tap
commit_author:
name: k1LoW
email: [email protected]
homepage: https://github.com/k1LoW/tbls
description: 'tbls is a CI-Friendly tool for document a database, written in Go.'
install: |
system './tbls', 'completion', 'bash', '--out', 'tbls.bash'
system './tbls', 'completion', 'zsh', '--out', 'tbls.zsh'
bin.install 'tbls'
bash_completion.install 'tbls.bash' => 'tbls'
zsh_completion.install 'tbls.zsh' => '_tbls'
nfpms:
-
id: tbls-nfpms
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
builds:
- tbls-linux
homepage: https://github.com/k1LoW/tbls
maintainer: Ken'ichiro Oyama <[email protected]>
description: tbls is a CI-Friendly tool for document a database, written in Go.
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
epoch: 1