Repository navigation
ci(release-unsigned): publish musl-named archives next to the bare binaries - #6
Merged
Merged
Conversation
…naries Each ug-v* release now also carries herdr-<tag>-<target>.tar.gz for x86_64- and aarch64-unknown-linux-musl, holding the herdr binary at the archive root, plus a <archive>.sha256 file. The bare herdr-linux-* assets are unchanged, so the Homebrew formula and existing mise pins keep resolving. fail_on_unmatched_files makes a missing asset fail the release instead of publishing without it. Refs OPS-1744
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.
Adds musl-named release assets to the in-house
ug-v*releases, as asked by paas's estate packaging tracker (OPS-1744, M2).What changes
release-unsigned.ymlkeeps the existing bare binaries and adds, for each target:herdr-linux-x86_64,herdr-linux-aarch64herdr-<tag>-x86_64-unknown-linux-musl.tar.gzherdr(0755) at the archive rootherdr-<tag>-aarch64-unknown-linux-musl.tar.gzherdr(0755) at the archive root<archive>.sha256sha256sumoutput, sosha256sum -cworksThe archive names follow cortex's
<tool>-<tag>-<triple>.tar.gz.fail_on_unmatched_files: truemakes a missing asset fail the release instead of publishing without it.Why the bare names stay, and why the checksum isn't
SHA256SUMS-<triple>Formula/herdr.rb) and ceres's mise pin (ubi:unsigned-gg/herdr,exe = "herdr") use them.picker.rspick_asset_from_matches).herdr-linux-*sorts beforeherdr-ug-v*, so glibc hosts keep getting the bare binary, which is the same musl build.<archive>.sha256because ubi drops an unknown extension (extension.rsfrom_path).SHA256SUMS-<triple>would match OS and arch, and its uppercaseSwould sort first. ubi would then install the checksum file.Not included
depends_on :linux. Upstream'srelease.ymlhas the macOS jobs to lift when one appears.Checks
bash -e -o pipefailwith umask 077 and a stub binary:tar tvzfshowsherdras 0755;sha256sum -cgives OK;cpand packed the binary as 0700 under umask 077. That is why it now usesinstall -m 0755.ug-v0.9.5.2(theunsignedhead is exactlyug-v0.9.5.1, so the binary source is unchanged).mise install ubi:unsigned-gg/herdr@ug-v0.9.5.2into scratch mise dirs, asserting the picked asset by name.gh release edit ug-v0.9.5.1 --latest.Refs OPS-1744