Skip to content

Commit

Permalink
Use --no-self-update for rustup on Windows (#1061)
Browse files Browse the repository at this point in the history
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]: rust-lang/rustup#2441
  • Loading branch information
kylewillmon authored Apr 25, 2023
1 parent fc27ebd commit e3837c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit e3837c7

Please sign in to comment.