actions-rs / toolchain

🛠️ GitHub Action for `rustup` commands
https://github.com/marketplace/actions/rust-toolchain
MIT License
591 stars 90 forks source link

Support forcing self update of rustup? #170

Open matklad opened 3 years ago

matklad commented 3 years ago

In rust-analyzer's CI, we are seeing rustup running out of memory frequently:

https://github.com/rust-analyzer/rust-analyzer/runs/2655689554#step:4:31

I think this should be fixed with the most recent rustup: https://blog.rust-lang.org/2021/05/17/Rustup-1.24.2.html

So I think that I'd be able to fix rust-analyzer's CI if I had something like this, to force self-update before toolchain download:

    - name: Install Rust toolchain
      uses: actions-rs/toolchain@v1
      with:
        self-update: true
        toolchain: stable
        profile: minimal
        override: true
        components: rustfmt, rust-src