Skip to content

Commit f786217

Browse files
committed
ci: skip host rustup for mipsel-softfloat (docker handles its toolchain)
v1.1.0 CI run (24820831905) failed at the dtolnay/rust-toolchain@stable step for the mipsel-unknown-linux-musl matrix entry: that target is tier-3 in stable Rust and `rust-std` isn't available via rustup, so the `targets:` parameter errors out with error: component 'rust-std' for target 'mipsel-unknown-linux-musl' is unavailable for download before the docker step that actually builds it ever runs. The docker image we use (`messense/rust-musl-cross:mipsel-musl-softfloat`) bundles its own Rust + std, so the host-level rustup isn't needed here at all. Gated by `matrix.mipsel_softfloat != true` so the other 8 targets still install their toolchain the normal way. `continue-on-error: true` on the job level already prevented this from blocking the release, but the failure was noisy and confusing — fix makes the whole matrix green. Pushed as a small follow-up to v1.1.0 so the re-tag picks it up.
1 parent f969433 commit f786217

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,16 @@ jobs:
6666
steps:
6767
- uses: actions/checkout@v4
6868

69+
# Skip the host-level rustup install for mipsel-softfloat — that
70+
# target is tier-3 in stable Rust (no prebuilt stdlib available
71+
# via rustup), and the docker image we use for this build ships
72+
# its own Rust toolchain + std. Trying to pass
73+
# `targets: mipsel-unknown-linux-musl` to dtolnay/rust-toolchain
74+
# errors out with "error: component 'rust-std' for target
75+
# 'mipsel-unknown-linux-musl' is unavailable for download", which
76+
# fails the job before the docker step ever runs.
6977
- uses: dtolnay/rust-toolchain@stable
78+
if: matrix.mipsel_softfloat != true
7079
with:
7180
targets: ${{ matrix.target }}
7281

0 commit comments

Comments
 (0)