Repository navigation
ci: pin cargo-zigbuild 0.23.3 and cross-compile release branches before merging - #132
Merged
Merged
Conversation
…ore merging The v0.10.0 publish run failed: the cross-compile action used ghcr.io/rust-cross/cargo-zigbuild:latest, now 0.23.4, which detaches the operand of `-exported_symbols_list` when linking a cdylib for Apple targets (rust-cross/cargo-zigbuild#479). sevenz-rust2 builds a cdylib, so x86_64-apple-darwin failed with "unable to read exported symbols list '-dead_strip'", and aarch64-apple-darwin is affected the same way. The fix (#480) is not released yet, so the image is pinned to 0.23.3, which linked v0.9.0. Nothing ran the cross toolchain before a release was merged: cross-compile.yaml only fired on a `test_workflow` branch, and the build workflow only compiles natively on Linux x86_64 and macOS arm64. It now runs on every push to a release/v* branch, when the cross-compile action or the workflow itself changes, and on demand, for all four release targets with fail-fast off. The action also checks that the `totebag` binary was produced. Co-Authored-By: Claude Opus 5.5 <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.
Fixes the cross-compilation that failed the v0.10.0 publish run, and makes release branches cross-compile before they are merged.
What failed
The publish run for v0.10.0 failed in
x86_64-apple-darwin, and the other three targets were cancelled:ghcr.io/rust-cross/cargo-zigbuild:latest, which is now 0.23.4.-exported_symbols_listwhen it links a cdylib for Apple targets (rust-cross/cargo-zigbuild#479).sevenz-rust2declarescrate-type = ["cdylib", "rlib"], so it is hit, onaarch64-apple-darwinas well.Changes
.github/actions/cross-compile/action.yaml: pinscargo-zigbuild:0.23.3. A comment explains why and says to move to a release containing #480, not back tolatest. The last step now also checks that thetotebagbinary was produced..github/workflows/cross-compile.yaml: it used to run only on pushes to atest_workflowbranch, and the everyday build only compiles natively on Linux x86_64 and macOS arm64. So nothing exercised the release toolchain before a release was merged. It now runs the four release targets, withfail-fast: falseso every target reports:release/v*branch: check it is green before merging the release PR;workflow_dispatch).Every push would be expensive, because each target pulls a build image and does a full release build. Release branches plus toolchain changes cover the cases where the cross toolchain matters.
Testing
This PR changes both paths in the
pull_requestfilter, so the cross-compile workflow runs here for all four targets.Redoing v0.10.0
After this is merged:
v0.10.0.publish.yamlcreates the tag again, and fails if it exists.release/v0.10.0again and wait for cross-compile to pass.🤖 Generated with Claude Code