Skip to content

ci: install pinned cross release instead of git HEAD (fixes release builds)#6

Merged
wolfsoftwaresystemsltd merged 1 commit into
mainfrom
fix-release-cross-install
Jun 24, 2026
Merged

ci: install pinned cross release instead of git HEAD (fixes release builds)#6
wolfsoftwaresystemsltd merged 1 commit into
mainfrom
fix-release-cross-install

Conversation

@wolfsoftwaresystemsltd

Copy link
Copy Markdown
Owner

Summary

"WolfDisk — Build Release Binaries" (and the docker + wolfscale release workflows) started failing at the Install cross step — before any project code is built.

Root cause: they install cross with cargo install cross --git https://github.com/cross-rs/cross. Building cross from git HEAD now pulls directories ^6.0dirs-sys 0.5.0, which requires a newer toolchain than the runner provides, so cargo install aborts with exit 101. The recent wolfdisk/s3 merge merely re-triggered the workflow; the breakage is the unpinned git install.

Fix

Use cargo install cross --locked, which installs the published cross 0.2.5 with its bundled lockfile (pinned, buildable deps). Applied to all three affected workflows:

  • .github/workflows/wolfdisk-release.yml
  • .github/workflows/wolfdisk-docker-publish.yml
  • .github/workflows/wolfscale-release.yml

Validation

  • cargo install cross --locked runs to completion locally (the exact step that failed in CI).
  • cross build --release --target x86_64-unknown-linux-musl of the wolfdisk crate validated locally with Docker.

Built by CodeWolf & Wolf Software Systems Ltd

The release/docker workflows installed cross via
`cargo install cross --git https://github.com/cross-rs/cross`. Building cross
from git HEAD started failing on the runners: its `directories ^6.0` →
`dirs-sys 0.5.0` dependency requires a newer toolchain than the action provides,
so `cargo install` aborted with exit 101 before any project code was built. This
broke "WolfDisk — Build Release Binaries" (and the docker + wolfscale release
workflows share the same step).

Switch to `cargo install cross --locked`, which installs the published cross
0.2.5 using its bundled lockfile (pinned, buildable deps). Validated locally:
install succeeds and `cross build --release --target x86_64-unknown-linux-musl`
runs. Applied to all three affected workflows.

Co-Authored-By: CodeWolf <paul@wolf.uk.com>
Co-Authored-By: Wolf Software Systems Ltd <paul@wolf.uk.com>
@wolfsoftwaresystemsltd wolfsoftwaresystemsltd merged commit 5c95caf into main Jun 24, 2026
1 check passed
@wolfsoftwaresystemsltd wolfsoftwaresystemsltd deleted the fix-release-cross-install branch June 24, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant