Skip to content

ci: Replace dtolnay/rust-toolchain by simple rustup command - #340

Merged
Yannik Tausch (ytausch) merged 4 commits into
mainfrom
yt/replace-rust-toolchain-action
Aug 10, 2026
Merged

Yannik Tausch (ytausch) merged 4 commits into
mainfrom
yt/replace-rust-toolchain-action

Conversation

@ytausch

Copy link
Copy Markdown
Member

Motivation

I accidentally pushed a reset to #339, hence I re-open the PR here.

Changes

See #339.

Comment thread .github/workflows/build.yml Resolved
@ytausch

Yannik Tausch (ytausch) commented Aug 10, 2026 •

Copy link
Copy Markdown
Member Author
image

seems like powershell doesn't like the \. Reverting.

@ytausch
Yannik Tausch (ytausch) merged commit cc5c281 into main Aug 10, 2026
20 checks passed
@ytausch
Yannik Tausch (ytausch) deleted the yt/replace-rust-toolchain-action branch August 10, 2026 15:59
Elliot Worth (EVWorth) pushed a commit to EVWorth/sqlpilot that referenced this pull request Oct 5, 2026
Every job that needs Rust ran two steps: a bash one-liner pulling the
channel out of rust-toolchain.toml, then dtolnay/rust-toolchain to
install it. rustup ships on every GitHub-hosted runner and reads
rust-toolchain.toml itself, so one step does both:

    rustup toolchain install --profile minimal --no-self-update

installs the pinned channel plus the file's components (rustfmt,
clippy), and every later cargo call in the checkout, src-tauri/
included, resolves to it. The release build adds
`rustup target add "$RUST_TARGET"` for its matrix target.

This drops a third-party action from the build path, which is also
what was turning Lint (workflows) red: upstream moved its v1 tag, so
the pin's version comment stopped matching (#741). With no pin there is
nothing to drift or to re-review on each upstream push. Quantco/pixi-pack
made the same change (Quantco/pixi-pack#340).

Given up: the action's new retry on release-server checksum failures.
That only bites while a Rust release is mid-publish.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SCNjpC4VgppHSFs7P6rkZg
(cherry picked from commit 4a6fb4f)
Elliot Worth (EVWorth) added a commit to EVWorth/sqlpilot that referenced this pull request Oct 5, 2026
Every job that needs Rust ran two steps: a bash one-liner pulling the
channel out of rust-toolchain.toml, then dtolnay/rust-toolchain to
install it. rustup ships on every GitHub-hosted runner and reads
rust-toolchain.toml itself, so one step does both:

    rustup toolchain install --profile minimal --no-self-update

installs the pinned channel plus the file's components (rustfmt,
clippy), and every later cargo call in the checkout, src-tauri/
included, resolves to it. The release build adds
`rustup target add "$RUST_TARGET"` for its matrix target.

This drops a third-party action from the build path, which is also
what was turning Lint (workflows) red: upstream moved its v1 tag, so
the pin's version comment stopped matching (#741). With no pin there is
nothing to drift or to re-review on each upstream push. Quantco/pixi-pack
made the same change (Quantco/pixi-pack#340).

Given up: the action's new retry on release-server checksum failures.
That only bites while a Rust release is mid-publish.


Claude-Session: https://claude.ai/code/session_01SCNjpC4VgppHSFs7P6rkZg

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants