Skip to content

ci: replace archived actions-rs/toolchain with dtolnay/rust-toolchain - #2291

Open
boleklebovski wants to merge 1 commit into
yetanotherco:testnetfrom
boleklebovski:ci/replace-archived-actions-rs-toolchain
Open

ci: replace archived actions-rs/toolchain with dtolnay/rust-toolchain#2291
boleklebovski wants to merge 1 commit into
yetanotherco:testnetfrom
boleklebovski:ci/replace-archived-actions-rs-toolchain

Conversation

@boleklebovski

Copy link
Copy Markdown

Problem

Four Rust workflows install their toolchain with actions-rs/toolchain@v1:

File Line
.github/workflows/build-and-test-rust.yml 23
.github/workflows/test-merkle-tree.yml 32
.github/workflows/test-risc-zero.yml 32
.github/workflows/test-sp1.yml 23

The actions-rs organisation has been archived since 2022 and its actions are pinned to the Node 12 runtime, which GitHub has removed. These steps emit deprecation annotations on every run today and are a standing breakage risk rather than a cosmetic issue.

Two more stragglers are inconsistent with the rest of the repo, which already standardises on v4:

  • lint-contracts.yml:18actions/checkout@v2 (every other workflow here uses @v4)
  • build-and-test-rust.yml:43,109actions/cache@v3

Fix

  • actions-rs/toolchain@v1dtolnay/rust-toolchain, the de-facto successor
    • build-and-test-rust.yml: @1.88.0 (the ref is the toolchain), keeping components: rustfmt, clippy
    • the three toolchain: stable jobs: @stable
    • override: true is dropped because dtolnay/rust-toolchain always makes the installed toolchain the default — the previous behaviour is preserved
  • actions/checkout@v2@v4 and actions/cache@v3@v4, matching what the other 10 workflows in this repo already use

Net effect is 11 lines across 5 files; no job names, triggers, or build commands change.

Verification

  • dtolnay/rust-toolchain@1.88.0 confirmed to exist as a ref (GET /git/ref/heads/1.88.0 → 200), so the pinned Rust version is unchanged
  • all 15 workflow files re-parsed as YAML after the edit, and each edited step was re-read back through the parser to confirm uses/with came out as intended
  • grep confirms no actions-rs, checkout@v1..v3 or cache@v1..v3 references remain

CI-only change: no application code is touched.

actions-rs has been archived since 2022 and runs on the removed Node 12
runtime. Move the four Rust workflows to dtolnay/rust-toolchain and bring
the two stragglers in line with the checkout@v4 / cache@v4 used elsewhere.
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