-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
74 lines (65 loc) · 1.72 KB
/
Copy path.goreleaser.yaml
File metadata and controls
74 lines (65 loc) · 1.72 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
version: 2
project_name: qshape
before:
hooks:
- go mod tidy
# pg_query_go requires CGO, so cross-compilation needs a cross toolchain.
# In CI we build each OS on its own runner (see .github/workflows/release.yml).
builds:
- id: qshape-darwin
main: ./cmd/qshape
binary: qshape
env:
- CGO_ENABLED=1
- 'CC={{- if eq .Arch "arm64" -}}oa64-clang{{- else -}}o64-clang{{- end -}}'
goos: [darwin]
goarch: [amd64, arm64]
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.ShortCommit}}
- -X main.date={{.Date}}
- id: qshape-linux
main: ./cmd/qshape
binary: qshape
env:
- CGO_ENABLED=1
- 'CC={{- if eq .Arch "arm64" -}}aarch64-linux-gnu-gcc{{- else -}}gcc{{- end -}}'
goos: [linux]
goarch: [amd64, arm64]
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.ShortCommit}}
- -X main.date={{.Date}}
archives:
- id: qshape
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
formats: [tar.gz]
files:
- README.md
- LICENSE
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- "^chore:"
- "^docs:"
- "^test:"
- Merge pull request
- Merge branch
release:
github:
owner: boringsql
name: qshape
draft: false
prerelease: auto
# Homebrew publication is handled manually in the boringsql/homebrew-boringsql
# tap via `make update FORMULA=qshape TAG=vX.Y.Z` (source-formula convention,
# matching dryrun / fixturize / regresql). GoReleaser only builds release
# binaries here; the tap is not auto-pushed.