You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it doesn't feel to be the simplest thing possible. Several issues:
Not easy to remember. A Github action could be created for this. However, if the project doesn't use rust-toolchain, nothing about the Rust version will be included in the cache key, which is not good. Possible options here:
An option could be added for the project to provide the Rust channel to be added in the cache key. But now the project will have to provide twice the Rust channel: one to the action for the cache key and one for the step where they will install Rust.
Another option could be for the action to handle the Rust install. However, doing the installation with xSuite might add significant time as xSuite might not be already installed. A solution could be to directly install rustup without xSuite.
Not easy to create a rust-toolchain file. Especially because a toolchain needs to be provided but also a target in order to build MultiversX smart contracts
In case rust-toolchain exists in the repository, not easy to install the version specified in the rust-toolchain, or even better, no way not having to care: if there is a version specified in the rust-toolchain it installs it otherwise it installs a version by default.
The command xsuite install-rust-key is also not useful and should be deprecated.
The text was updated successfully, but these errors were encountered:
So far, this is the best way known to install and cache Rust in a Github CI:
But it doesn't feel to be the simplest thing possible. Several issues:
Not easy to remember. A Github action could be created for this. However, if the project doesn't use rust-toolchain, nothing about the Rust version will be included in the cache key, which is not good. Possible options here:
Not easy to create a rust-toolchain file. Especially because a toolchain needs to be provided but also a target in order to build MultiversX smart contracts
In case rust-toolchain exists in the repository, not easy to install the version specified in the rust-toolchain, or even better, no way not having to care: if there is a version specified in the rust-toolchain it installs it otherwise it installs a version by default.
The command
xsuite install-rust-key
is also not useful and should be deprecated.The text was updated successfully, but these errors were encountered: