Add deb packaging pipeline with CI testing#41
Merged
Conversation
Extract Go/nfpm toolchain setup into a reusable composite action (.github/actions/build-deb) shared by both CI and publish workflows. Add build-deb and test-deb CI jobs that exercise the packaging pipeline on every PR across debian:bookworm and ubuntu:24.04 on both amd64 and arm64 runners. Add scripts/verify-deb-install.sh for container-based deb verification, tests/deb/test-package.sh and tests/deb/test-all.sh for local Docker testing, and scripts/validate-version.sh for semver input validation. Update Makefile with test-package target and expanded lint globs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Introduces the packaging infrastructure needed to ship local tools (starting with
validate-action-pins) as distributable.deband.tar.gzpackages. Extracts deb building into a reusable composite action, adds CI gates that exercise the full packaging pipeline on every PR, and provides local testing viamake test-package.Related Issues
Refs #38
Changes
.github/actions/build-debcomposite action wrapping Go/nfpm toolchain setup andpackage-deb.shpackage-release.sh(tarballs),package-deb.sh(debs),generate-checksums.sh, andvalidate-version.shnfpm.yamlconfiguration anddocs/man/man1/validate-action-pins.1man pagescripts/verify-deb-install.shandtests/deb/test harness for Docker-based package verificationbuild-deb(per-arch matrix) andtest-deb(distro x arch matrix) jobstest-packagetarget, and break up long linesFurther Comments
Only the amd64 architecture is testable on standard GitHub-hosted runners. Arm64 testing uses
ubuntu-24.04-armrunners, which require org-level runner access. Thetests/deb/test-all.shscript provides equivalent local testing across both architectures, skipping cross-arch packages that can't run natively.