-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
76 lines (68 loc) · 1.94 KB
/
.goreleaser.yaml
File metadata and controls
76 lines (68 loc) · 1.94 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
75
76
version: 2
project_name: dlv
before:
hooks:
- go mod download
builds:
- main: ./cmd/dlv
binary: dlv
# CGO is left at its default: enabled for native builds, automatically
# disabled by the Go toolchain when cross-compiling. This means linux/amd64
# release binaries are built with CGO on a linux/amd64 CI runner, while all
# cross-compiled targets (darwin, windows, linux/arm64, etc.) use pure Go.
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- "386"
- ppc64le
ignore:
# darwin and windows only support amd64 and arm64 in this release config.
# riscv64 and loong64 are supported by Delve but excluded here because
# goreleaser cross-compilation toolchains for those targets are not yet
# available in standard CI environments.
- goos: darwin
goarch: "386"
- goos: darwin
goarch: ppc64le
- goos: windows
goarch: "386"
- goos: windows
goarch: ppc64le
ldflags:
- -X main.Build={{.FullCommit}}
archives:
- formats:
- tar.gz
format_overrides:
- goos: windows
formats:
- zip
name_template: "dlv_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: "checksums.txt"
algorithm: sha256
# Cosign keyless signing via Sigstore. Signing runs automatically in GitHub
# Actions with `id-token: write` permission — cosign v2 auto-detects the
# GitHub Actions OIDC identity. No private key or secret is required.
# To verify: cosign verify-blob --certificate <file>.cert --signature <file>.sig <file>
signs:
- cmd: cosign
certificate: "${artifact}.cert"
args:
- sign-blob
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- "${artifact}"
- --yes
artifacts: checksum
output: true
release:
github:
owner: go-delve
name: delve
snapshot:
version_template: "{{ .Tag }}-next"