This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
Automatically install toolchain from rust-toolchain.toml
#195
Labels
enhancement
New feature or request
Do the checklist before filing an issue:
actions-rs
Actions?If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.community
Motivation
Cargo now offers the
rust-toolchain.toml
file which allows a project to specify what toolchain details it needs. Currently,actions-rs
requires you to set up two actions:actions-rs/toolchain@v1
- install the toolchain things you needactions-rs/cargo@v1
- run cargo (i.e.build
)Instead, the
actions-rs/cargo@v1
action could detect if no toolchain was manually specified in the actions yml. If not, it should readrust-toolchain.toml
and install all the required stuff automatically.Workflow example
rust-toolchain.toml:
.github/workflows/test.yml:
Notice the lack of any reference to
actions-rs/toolchain@v1
. Instead,actions-rs/cargo@v1
will install everything required as specified in therust-toolchain.toml
file.Additional context
https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file
The text was updated successfully, but these errors were encountered: