Migrate build/release pipeline to goreleaser#55
Merged
Conversation
Replaces the hand-rolled justfile cross-compile/dpkg-deb packaging with goreleaser (.goreleaser.yaml), which now also produces .rpm packages via nfpm for free. justfile becomes a thin wrapper around goreleaser, CI workflows call it directly instead of the previous-tag/softprops-release dance, and the now-redundant control file is removed. Snap packaging is left untouched since goreleaser doesn't build snaps. Also updates the README with an RPM install section, notes that Windows/ FreeBSD binaries are published too, and fixes the stale `go get` install instructions to `go install`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
justfilecross-compile +dpkg-debpackaging with goreleaser (.goreleaser.yaml), which also produces.rpmpackages via its built-innfpmintegration.justfilebecomes a thin wrapper aroundgoreleaser(build,release-snapshot,release,check); CI workflows calljust build/just releaseand no longer need the previous-tag lookup +softprops/action-gh-releasedance since goreleaser reads the version straight from the pushed git tag.controlfile (superseded by thenfpms:block).just snapstill callssnapcraftdirectly.CLAUDE.mdto describe the new pipeline.README.md: adds an RPM install section, notes Windows/FreeBSD binaries are published too, and fixes stalego getinstall instructions togo install.Test plan
just check— validates.goreleaser.yamljust build— cross-compiles all 7 targets (linux amd64/arm64/386, windows amd64, darwin amd64/arm64, freebsd amd64), matching the old justfile matrixjust release-snapshot— produces archives +.deb/.rpm(linux amd64/arm64 only) indist/.debcontents (dpkg --contents) place the binary at/usr/bin/mdviewand man page at/usr/share/man/man1/mdview.1-ldflags -X main.appVersion=...works (mdview -v)release.yml(can't test until merged + tagged)