Files
wasmtime/.github/actions/install-rust
Trevor Elliott b6aeaf4fe5 Cache the crates index and package cache for jobs that build rust (#5293)
Rework the install-rust action to include caching of the crates index and cached downloaded crates.
2022-11-17 17:07:38 -08:00
..

install-rust

A small github action to install rustup and a Rust toolchain. This is generally expressed inline, but it was repeated enough in this repository it seemed worthwhile to extract.

Some gotchas:

  • Can't --self-update on Windows due to permission errors (a bug in Github Actions)
  • rustup isn't installed on macOS (a bug in Github Actions)

When the above are fixed we should delete this action and just use this inline:

- run: rustup update $toolchain && rustup default $toolchain
  shell: bash