Skip to content

ci: fix missing toolchain input in release publish job#18

Merged
27Bslash6 merged 1 commit intomainfrom
fix/release-workflow-toolchain
Apr 26, 2026
Merged

ci: fix missing toolchain input in release publish job#18
27Bslash6 merged 1 commit intomainfrom
fix/release-workflow-toolchain

Conversation

@27Bslash6
Copy link
Copy Markdown
Contributor

@27Bslash6 27Bslash6 commented Apr 26, 2026

Summary

  • The dtolnay/rust-toolchain action in the publish job was SHA-pinned but missing the required toolchain: stable input
  • This caused the v0.3.0 publish to fail immediately: 'toolchain' is a required input

Fix

Add with: toolchain: stable to the step.

After merging, re-run the failed publish job or manually cargo publish.

Summary by CodeRabbit

  • Chores
    • Improved CI build workflow: isolated artifact storage and a streamlined Rust toolchain setup for more reliable, more consistent builds.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 26, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 01bd6dec-0765-43dd-939a-29ab7ed4eb3f

📥 Commits

Reviewing files that changed from the base of the PR and between 7acec7c and 02d02f9.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

📝 Walkthrough

Walkthrough

Publish job in the GitHub Actions workflow was modified: it now runs on cachekit-lean, removes the dtolnay/rust-toolchain and Swatinem/rust-cache actions, sets RUSTUP_HOME and CARGO_HOME under /tmp, and installs the stable Rust toolchain via inline rustup commands (minimal profile, set default). Tests/publish steps unchanged.

Changes

Cohort / File(s) Summary
GitHub Workflow
​.github/workflows/release.yml
Publish job updated to run on cachekit-lean; removed dtolnay/rust-toolchain and Swatinem/rust-cache action usages; added env vars RUSTUP_HOME/CARGO_HOME pointing to /tmp; added inline rustup commands to install stable (minimal) and set it as default. Tests/publish step logic preserved.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 In cachekit-lean I hop and cheer,
Rustup in /tmp makes artifacts clear.
Stable installed, set as the way,
Builds stay tidy — huzzah, hooray! 🥕✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'ci: fix missing toolchain input in release publish job' accurately describes the main change—adding the missing toolchain input to the release workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/release-workflow-toolchain

Comment @coderabbitai help to get the list of available commands and usage tips.

The publish job was on ubuntu-latest with dtolnay/rust-toolchain
(which failed due to missing toolchain input). Switch to cachekit-lean
runners with rustup directly — same as CI. Drop dtolnay action and
Swatinem/rust-cache (unnecessary on persistent runners).
@27Bslash6 27Bslash6 force-pushed the fix/release-workflow-toolchain branch from 7acec7c to 02d02f9 Compare April 26, 2026 09:17
@27Bslash6 27Bslash6 merged commit c94eab5 into main Apr 26, 2026
5 checks passed
@27Bslash6 27Bslash6 deleted the fix/release-workflow-toolchain branch April 26, 2026 09:24
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