lutron-control/.goreleaser.yaml
James Coleman b39600f64a
Some checks failed
Go package / build (push) Has been cancelled
Add scene-select channels, MQTT override, and release tooling; bump to 0.1.1
Restore uncommitted work from earlier sessions: DMX scene-select channels,
MQTT override handling, configurable zone refresh interval, OSC additions,
and matching tests and docs.

Add versioning following nginx-cache-purge: VERSION file, ldflags-stamped
build identifiers in info.go, Makefile, GoReleaser config, GitHub workflows,
and a -version flag using the standard flag package.

Claude-Session: https://claude.ai/code/session_01C5ZxhELATettecwYcNiXVN
2026-08-25 21:15:33 -05:00

74 lines
1.5 KiB
YAML

# GoReleaser config for lutron-control.
# https://goreleaser.com
#
# CGO is disabled so the binary is fully static (no glibc dependency) and runs
# unmodified across modern Linux distributions.
version: 2
project_name: lutron-control
before:
hooks:
- go mod tidy
- go test ./...
builds:
- id: lutron-control
main: .
binary: lutron-control
env:
- CGO_ENABLED=0
flags:
- -trimpath
# The build identifiers live in package main, so they are stamped there
# rather than in an imported configuration package.
ldflags:
- -s -w
- -X main.Version={{ .Version }}
- -X main.Commit={{ .ShortCommit }}
- -X main.Date={{ .Date }}
- -X main.Mode=release
goos:
- linux
- darwin
goarch:
- "386"
- amd64
- arm
- arm64
- ppc64le
goarm:
- "6"
ignore:
- goos: darwin
goarch: "386"
- goos: darwin
goarch: arm
- goos: darwin
goarch: ppc64le
archives:
- id: default
formats: [tar.gz]
# Kept compatible with the results of uname, matching the naming earlier
# releases were published under.
name_template: "{{ .ProjectName }}-{{ .Version }}.{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: true
files:
- README.md
- LICENSE
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ incpatch .Version }}-snapshot"
changelog:
use: git
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"