Truly independent web browser
CI: Reinstall a Rust toolchain that lacks rustc
sideshowbarkerdfb57cfdc38b
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.ymlindex 7b3ccda61b6..5f65f496728 100644--- a/.github/actions/setup/action.yml+++ b/.github/actions/setup/action.yml@@ -126,13 +126,13 @@ runs:if: ${{ inputs.os == 'macOS' || inputs.os == 'Android' || inputs.os == 'Windows' }}shell: bashrun: |- if rustup toolchain install && cargo --version ; then+ if rustup toolchain install && cargo --version && rustc --version ; thenexit 0fi# Some Blacksmith runner images boot with a partially installed toolchain. Either it has files rustup doesn't# know about, which rustup can't repair on its own and fails on with a "detected conflict" error, or it lacks- # cargo although rustup reports the toolchain as installed. So wipe the toolchain and retry.+ # cargo or rustc although rustup reports the toolchain as installed. So wipe the toolchain and retry.CHANNEL=$(sed -n 's/^channel *= *"\(.*\)"/\1/p' "${{ github.workspace }}/rust-toolchain.toml")if [ -z "${CHANNEL}" ]; thenecho "Could not determine the pinned Rust channel" >&2@@ -143,6 +143,7 @@ runs:rustup toolchain uninstall "${CHANNEL}" || rm -rf "$(rustup show home)/toolchains/${CHANNEL}"-*rustup toolchain installcargo --version+ rustc --version- name: 'Resolve wasm-tools release'id: 'wasm-tools'