Repository navigation
Gate release builds under Build and test and make Linux releases reproducible - #257
Merged
Merged
Conversation
…oducible The release builds move to release-build.yml, a reusable workflow. release.yml calls it for a tag. ci.yml calls it as a dry run when a pull request changes release.yml, release-build.yml or the Dockerfile, and ci-ok needs it, so a broken release build fails Build and test. Other pull requests skip it. The Linux builds run in the Dockerfile's digest-pinned Debian 12 builder image. The binary needs glibc 2.34, and each build runs it on Debian 12 and Ubuntu 22.04. Windows and macOS install the image's Rust version. Paths are remapped and archives are sorted with fixed owners, modes and the commit's time, with gzip -n, so two builds of a commit give the same Linux archives. Each archive carries TOOLCHAIN.txt. Fixes #252 Fixes #241 Fixes #242
saworbit
enabled auto-merge (squash)
November 16, 2026 05:19
This was referenced Nov 16, 2026
This was referenced Nov 16, 2026
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.
What and why
The release dry run wasn't part of
Build and test, so a pull request that broke the release build could still auto-merge (#252). That is also why #241 and #242 were left open. This puts the dry run under the gate and then does both.release-build.yml, a reusable workflow.release.ymlcalls it for a tag.ci.ymlcalls it as a dry run when a pull request changesrelease.yml,release-build.ymlor theDockerfile, andci-okneeds it. Other pull requests skip it, andci-okalready counts skipped as passed. This pull request changes all three files, so its ownBuild and testincludes the dry run.FROMline, so Dependabot's digest bumps carry over. The binary needs glibc 2.34 (it used to need 2.39), and each build runs it on Debian 12 and Ubuntu 22.04.RUST_VERSION.go-w, every timestamp the commit's, andgzip -n. Paths are remapped. Each archive has aTOOLCHAIN.txt.Checked locally: two builds of this tree in fresh containers of the builder image gave the same binary and archive (sha256
77ccc323...). The binary's highest glibc symbol isGLIBC_2.34, andspacectl --versionruns on Debian 12 and Ubuntu 22.04. No/srcor/usr/local/cargopaths are left in it.Fixes #252
Fixes #241
Fixes #242
Type
Checklist
typosactionlintandzizmor(no findings)No Rust code changed.
Security