ci: add release workflow with platform binaries#4
Merged
jonwiggins merged 1 commit intojonwiggins:mainfrom Apr 22, 2026
Merged
Conversation
Builds xmllint for linux-x86-64, linux-aarch64, darwin-aarch64, and
windows-x86-64 on each v* tag and uploads the binaries as GitHub release
assets. Asset naming follows the xmllint_{os}-{arch} convention so
package managers (e.g. mise's github: backend) can pick up the right
binary automatically.
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
8 tasks
Owner
|
Thanks for the contribution, @zeitlinger! This is a nicely scoped change — clean matrix, sensible action choices, and the mise motivation makes a lot of sense. Merging now. I've opened a follow-up issue tracking some non-blocking improvements (macOS x86_64 coverage, tag/version consistency check, binary stripping, checksums, SHA-pinning third-party actions): see the issue linked from this PR. Happy to take more PRs if any of those interest you. |
jonwiggins
added a commit
that referenced
this pull request
Apr 22, 2026
…0bc-bd8efd3449ca release workflow: follow-ups from PR #4
jonwiggins
added a commit
that referenced
this pull request
Apr 22, 2026
Bump to 0.4.2 and apply the hardened release workflow that was committed as .github/release.yml.pending in PR #7 but couldn't be moved into .github/workflows/ from a token without the workflow scope. Release changes since 0.4.1: - serial: eliminate implicit xml namespace for exclusive c14n (#5) - ci: release workflow with per-platform xmllint binaries (#4, #7) - release profile: strip = true for smaller binaries - dependabot: weekly github-actions updates
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
.github/workflows/release.ymltriggered onv*tagsxmllint(the CLI binary, gated on--features cli) for four targets:linux-x86-64,linux-aarch64,darwin-aarch64,windows-x86-64crossfor cross-compilation; other targets build nativelyxmllint_{os}-{arch}(e.g.xmllint_linux-x86-64,xmllint_windows-x86-64.exe)Motivation
Without pre-built binaries, package managers that support the
github:backend (e.g. mise) must fall back to compiling from source viacargo install, which takes several minutes per machine. Binary releases makemise installnear-instant.The asset naming convention (
{binary}_{os}-{arch}) matches what mise'sgithub:backend auto-discovers, so no extra configuration is needed on the consumer side.Notes
fail-fast: falsekeeps the matrix running if one platform failsSwatinem/rust-cache(already in ci.yml) for incremental build cachingsoftprops/action-gh-releasefor the release step — widely used, no extra secrets needed beyond the defaultGITHUB_TOKEN