-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.goreleaser.yml
More file actions
121 lines (114 loc) · 3.1 KB
/
.goreleaser.yml
File metadata and controls
121 lines (114 loc) · 3.1 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# GoReleaser configuration for Clarity CLI
# Documentation: https://goreleaser.com
version: 2
project_name: clarity
# Build configuration
# NOTE: This project uses CGO (tree-sitter C bindings). Cross-compilation is handled
# via toolchains installed in GitHub Actions (gcc-mingw-w64, gcc-aarch64-linux-gnu, OSXCross).
# For local development, use 'make build-local' to build for your platform.
builds:
- id: clarity
main: ./main.go
binary: clarity
env:
- CGO_ENABLED=1
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
# Exclude invalid combinations
ignore:
- goos: windows
goarch: arm64
# Inject version information
ldflags:
- -s -w
- -X github.com/LegacyCodeHQ/clarity/cmd.version={{.Version}}
- -X github.com/LegacyCodeHQ/clarity/cmd.buildDate={{.Date}}
- -X github.com/LegacyCodeHQ/clarity/cmd.commit={{.ShortCommit}}
# Configure cross-compilation
overrides:
# Linux ARM64
- goos: linux
goarch: arm64
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
# Windows AMD64
- goos: windows
goarch: amd64
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
# macOS AMD64 (Intel)
- goos: darwin
goarch: amd64
env:
- CC=o64-clang
- CXX=o64-clang++
# macOS ARM64 (Apple Silicon)
- goos: darwin
goarch: arm64
env:
- CC=oa64-clang
- CXX=oa64-clang++
# Archive configuration
archives:
- id: clarity-archive
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
- README.md
# Checksums for all archives
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
algorithm: sha256
# Generate changelog from git commits
changelog:
use: github
sort: asc
abbrev: 7
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: Bug Fixes
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Documentation
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
order: 2
- title: Other Changes
order: 999
filters:
exclude:
- '^test:'
- '^chore:'
- typo
# GitHub release configuration
release:
github:
owner: LegacyCodeHQ
name: clarity-cli
draft: false
prerelease: auto
mode: append
name_template: "v{{.Version}}"
header: |
footer: |
**Full Changelog**: https://github.com/LegacyCodeHQ/clarity-cli/compare/{{ .PreviousTag }}...{{ .Tag }}
# Homebrew tap - handled by separate workflow job
# See .github/workflows/release.yml for Homebrew tap publishing
# Snapcraft (optional - uncomment for Linux snap packages)
# snapcrafts:
# - name: clarity
# summary: Analyze and visualize dependency graphs
# description: |
# Clarity is a CLI tool for analyzing and visualizing dependency graphs
# in your codebase, with support for Dart and Go files.
# grade: stable
# confinement: classic
# publish: true