| 1 | # install-rust |
| 2 | |
| 3 | A small github action to install `rustup` and a Rust toolchain. This is |
| 4 | generally expressed inline, but it was repeated enough in this repository it |
| 5 | seemed worthwhile to extract. |
| 6 | |
| 7 | Some gotchas: |
| 8 | |
| 9 | * Can't `--self-update` on Windows due to permission errors (a bug in Github |
| 10 | Actions) |
| 11 | * `rustup` isn't installed on macOS (a bug in Github Actions) |
| 12 | |
| 13 | When the above are fixed we should delete this action and just use this inline: |
| 14 | |
| 15 | ```yml |
| 16 | - run: rustup update $toolchain && rustup default $toolchain |
| 17 | shell: bash |
| 18 | ``` |