Repository navigation
Ship prebuilt binaries with every release again - #124
Merged
Merged
Conversation
Tag pushes of more than three tags are dropped by GitHub, so the dist workflow never ran for releases. dispatch-publish.sh now dispatches dist and docker for the cargo-changeset tag, continues on failures and reports them at the end. The release job is idempotent, and forks only dry-run publishing and never push images. Adds a test for the script.
git2 no longer pulls them into the dependency tree.
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.
Closes #122.
Problem
GitHub creates no push events when more than three tags are pushed at once. The release workflow pushes one tag per released crate in a single push (0.1.6 pushed nine tags, 0.1.7 four), so
dist.yml, which only ran on a tag push, never ran after 0.1.5.publish.ymlanddocker.ymlstill ran becausedispatch-publish.shstarts them explicitly;dist.ymlwas never added to that script.Changes
dispatch-publish.shalso startsdist.ymlfor thecargo-changesettag. A failed dispatch no longer stops the remaining ones; the script reports the failures and exits non-zero at the end. Covered by a new stub-based test (test-dispatch-publish.sh) that runs in the lint workflow.dist.yml,docker.ymlandpublish.ymlare dispatch-only, so a release has a single trigger path and no double runs.dist.ymlbuilds on any ref (placeholder version0.0.0-<sha>off a tag). Only the release job requires acargo-changeset@v*tag. It creates the GitHub release or replaces the assets of an existing one, so it can be re-run.lukidoescode/cargo-changeset,publish.ymlrunscargo publish --workspace --dry-runanddocker.ymlbuilds without logging in or pushing, so copies of the repo can rehearse a release safely.Dockerfileno longer installs OpenSSL/libssh2:git2is built without default features, and nothing in the dependency tree links them.additional-packages: the configuration, the automatic patch bump for version-tracking dependencies, and thecargo changeset additional-packagessubcommand.Rehearsal
dist.ymlrun of this branch: all 5 targets built, the release job was skipped.[email protected]release with 5 binaries;