From 6d3c3904e19a5c5e5b97e9c6cb060c3a8a7125fb Mon Sep 17 00:00:00 2001 From: Kyle Willmon Date: Tue, 25 Apr 2023 15:10:28 -0500 Subject: [PATCH] Use --no-self-update for rustup on Windows Self-update on Windows is hard... And rustup occasionally fails to self-update. There is a [related issue][1] to fix this behavior, but until then, using `--no-self-update` is a decent workaround. [1]: https://github.com/rust-lang/rustup/issues/2441 --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7be46a62a..83ffab87a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,12 +25,12 @@ jobs: - name: Install Rust toolchain run: | - rustup toolchain install stable --profile minimal -c clippy + rustup toolchain install --no-self-update stable --profile minimal -c clippy rustup default stable - name: Install Rust nightly toolchain if: github.event_name != 'schedule' - run: rustup toolchain install nightly --profile minimal -c rustfmt + run: rustup toolchain install --no-self-update nightly --profile minimal -c rustfmt - name: Format check if: github.event_name != 'schedule'