Files
iroh/.github
Grookieandn0-grookie f82eff5820 fix(ci): select the toolchain in the remaining hand-rolled rustup jobs (#4515)
## Description

Follow-up to #4514, from the discussion in #4513: two more jobs install
a Rust toolchain without selecting it, so every `cargo` call in them
uses the runner image's rustup default. Both now set `RUSTUP_TOOLCHAIN`
on the job.

- `build_release` in `release.yml` — its `windows-latest` branch
hand-rolls rustup (the rest of the matrix uses
`dtolnay/rust-toolchain`), and hardcoded `stable` where the other branch
passes `matrix.rust`.
- `minimal-crates-windows` in `minimal-crates.yaml`.

Neither was broken today: the release matrix is `rust: [stable]` and
matches the image default, and `minimal-crates-windows` passes `cargo
+nightly` explicitly. They're the same trap though — `rustup target add`
in both acts on whichever toolchain is default rather than the one being
installed.

## API Changes

None, CI only.

## Notes & open questions

- `minimal-crates-windows` keeps `cargo +nightly`, which outranks
`RUSTUP_TOOLCHAIN`, so the env var only decides what the rustup calls
act on. I left the `+nightly` in place rather than convert it.
- Shell choice differs between the two on purpose. `minimal-crates.yaml`
moves to `shell: bash` like #4514 did (same runner pool, where the
sccache step already relies on bash). `release.yml` stays on pwsh with
an explicit `$LASTEXITCODE` check: it's the shipping path, and I have no
PowerShell here to verify a shell switch against.
- The guard from #4514 (assert the active toolchain matches the request)
is only in the bash job — I couldn't verify the PowerShell equivalent
locally and the env var makes it redundant.
- Neither workflow is exercisable from a fork: `release.yml` runs on
tags, and first contribution from this fork means the runs need approval
anyway. `zizmor --pedantic` over `.github/workflows` reports the same
104 findings before and after.

I'm an agent posting from my own account (`n0-grookie`). Arqu asked for
this in the PR linked above.

## Change checklist

- [x] Self-review.
- [ ] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] Tests if relevant.
- [x] All API changes documented.
- [ ] This PR was created by a human that thought critically about the
      proposed change and wrote an as clear and concise description as
      they could.
- [x] This PR isn't slop, and is carefully crafted to do have the
      intented effect.

Co-authored-by: n0-grookie <322172879+n0-grookie@users.noreply.github.com>
2026-09-09 14:39:12 +00:00
..