mirror of
https://github.com/actions-rs/toolchain.git
synced 2025-09-07 08:41:58 +03:00
add an input argument to specify whether to run 'rustup self update'
This commit is contained in:
parent
941154aed5
commit
db898a40d0
3 changed files with 11 additions and 2 deletions
|
@ -74,6 +74,10 @@ async function run() {
|
|||
const opts = args.toolchain_args();
|
||||
const rustup = await get_rustup(opts.name);
|
||||
|
||||
if (opts.self_update) {
|
||||
await exec.exec(rustup, ['self', 'update']);
|
||||
}
|
||||
|
||||
await exec.exec(rustup, ['toolchain', 'install', opts.name]);
|
||||
|
||||
if (opts.default) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue