nick0602 / bitrise-step-rustup

Unofficial Bitrise step to install the Rust Toolchain.
MIT License
1 stars 3 forks source link

Specify Rust version to use #2

Closed dbainbridge closed 2 years ago

dbainbridge commented 2 years ago

Since we can't use latest Stable build of Rust we have to specify an older version. To work-around the version have a Script step after the Rustup step. Would be really nice if can specify the version within the Rustup step.

Currently doing this in a Script after Rustup step: rustup default "$RUST_VERSION"

nick0602 commented 2 years ago

I think it's a reasonable request and use case, I'm targeting 0.2.0 for that as it requires a bit of a breaking change in regards to how the stable/nightly setup is performed.

I'll look into it over the next few days, thanks for the suggestion!

nick0602 commented 2 years ago

I pre-released 0.2.0-beta01 (diff here), I don't plan on adding other breaking changes but I might add some additional logging at the beginning of the step before the release. It should also be a bit faster as it will download the required version straight away.

Please make sure to set the new field from the Bitrise UI Editor as 0.2.0 will default to the stable version if no version is specified:

img

I plan on submitting 0.2.0 to Bitrise by the end of the week but feel free to try it out if you want, I ran it on both Mac OS and Ubuntu stacks and it should be working as expected.

nick0602 commented 2 years ago

https://github.com/bitrise-io/bitrise-steplib/pull/3624