forked from DataDog/pup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser-macos.yaml
More file actions
59 lines (51 loc) · 1.5 KB
/
Copy path.goreleaser-macos.yaml
File metadata and controls
59 lines (51 loc) · 1.5 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# macOS-only goreleaser config — runs on macos-latest-xlarge in the parallel release pipeline.
version: 2
project_name: pup
report_sizes: true
before:
hooks:
- rustup default stable
- cargo fetch --locked
# Verify Cargo.toml version matches git tag
- >-
sh -c 'CARGO_VER=$(grep "^version" Cargo.toml | head -1 | sed "s/.*\"\(.*\)\"/\1/"); TAG_VER=$(git describe --tags --exact-match 2>/dev/null | sed "s/^v//"); if [ "$CARGO_VER" != "$TAG_VER" ]; then echo "ERROR: Cargo.toml version ($CARGO_VER) does not match git tag ($TAG_VER)"; exit 1; fi'
builds:
- id: macos
builder: rust
binary: pup
command: build
targets:
- x86_64-apple-darwin
- aarch64-apple-darwin
flags:
- --release
- --features=vendored-openssl
archives:
- formats: [tar.gz]
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
files:
- LICENSE
- LICENSE-3rdparty.csv
- README.md
sboms:
- artifacts: archive
cmd: syft
args:
- "${artifact}"
- "--output"
- "spdx-json=${document}"
documents:
- "{{ .ArtifactName }}.sbom.json"
# Disable release — the finalize job handles it
release:
disable: true
# Disable checksum/signing — finalize handles these across all platforms
checksum:
disable: true