-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
52 lines (46 loc) · 1.22 KB
/
Copy path.goreleaser.yml
File metadata and controls
52 lines (46 loc) · 1.22 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
version: 2
before:
hooks:
# Generate fresh PGO profiles before building release binaries.
# Profile all hot paths: brute-force scoring, IVF search, rotation, KV cache.
- >-
sh -c '
go test -cpuprofile=/tmp/pgo1.pprof -bench="BenchmarkSearch_BruteForce_10K|BenchmarkSearch_IVF|BenchmarkSearch_Rescore|BenchmarkScoreVec|BenchmarkQueryRotation" -count=3 -timeout=120s -short ./store/ &&
go test -cpuprofile=/tmp/pgo2.pprof -bench="BenchmarkKVCacheAttention" -count=3 -timeout=30s -short ./kvcache/ &&
go tool pprof -proto /tmp/pgo1.pprof /tmp/pgo2.pprof > cmd/tqdb/default.pgo
'
builds:
- id: tqdb
main: ./cmd/tqdb
binary: tqdb
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X main.version={{.Version}}
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
archives:
- id: tqdb
builds: [tqdb]
format: tar.gz
format_overrides:
- goos: windows
format: zip
name_template: "tqdb_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: checksums.txt
changelog:
use: github-native
release:
github:
owner: scotteveritt
name: tqdb