You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: install rust via official rustup script to sidestep action-pin churn
Previous attempts (3c5f7ea..., b3b07ba8...) at SHA-pinning
dtolnay/rust-toolchain kept failing in 2-5 s — far too fast to be a real
cargo failure. Most likely cause is that the pinned SHA on the third-party
action repo is no longer resolvable; the action fails to load, the job dies
before any of our steps run.
Rather than chase a moving SHA target on a third-party setup action,
install rustup directly via its official script (sh.rustup.rs) in a
`run:` step. Same outcome (stable rust + clippy + rustfmt or
llvm-tools-preview), but with zero third-party action surface area for
toolchain bring-up.
For cargo-audit and cargo-llvm-cov, fall back to `cargo install --locked`.
Slower than taiki-e/install-action prebuilt binaries but unambiguously
deterministic — if a pin breaks we get a build error, not a 2-second
"job died at action resolution" mystery.
Still SHA-pins the two actions we genuinely need:
- actions/checkout@de0fac2e... (already used everywhere else in repo)
- codecov/codecov-action@57e3a136... (already used everywhere else)
Local verification:
python3 -c "import yaml; yaml.safe_load(open('rust-ci.yml'))" → OK
workflow-linter SHA-pin check → pass
cargo fmt --all -- --check → pass
cargo clippy --workspace --all-targets -- -D warnings → pass
cargo test --workspace --no-fail-fast → 139/139
https://claude.ai/code/session_012opuP3HehkjDkF1XQ8nFex
0 commit comments