diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4010829..8056a32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -166,7 +166,16 @@ jobs: docker run --rm -v "$PWD":/src -w /src \ -e RUSTFLAGS='-C target-feature=+soft-float' \ messense/rust-musl-cross:mipsel-musl \ - sh -c "rustup toolchain install nightly --profile minimal --component rust-src && \ + sh -c "set -eux; \ + # The image ships with a pre-installed nightly that rustup \ + # can't cleanly upgrade — the expected \`clippy-preview/share/doc/clippy/README.md\` \ + # is missing, which fails the in-place upgrade \ + # (error: failure removing component 'clippy-preview...'). \ + # Nuke it first, then install fresh with only the profile \ + # bits we actually use. \ + rustup toolchain uninstall nightly 2>/dev/null || true; \ + rustup toolchain install nightly --profile minimal; \ + rustup component add rust-src --toolchain nightly; \ cargo +nightly build --release \ -Z build-std=std,panic_abort \ --target mipsel-unknown-linux-musl \