mirror of
https://github.com/actions-rs/toolchain.git
synced 2024-11-13 04:56:32 +02:00
Missing rustup invocation
This commit is contained in:
parent
7d6ef4b233
commit
64f28e754d
2 changed files with 14 additions and 14 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
26
src/main.ts
26
src/main.ts
|
@ -92,19 +92,19 @@ async function run() {
|
|||
|
||||
const rustup = await get_rustup(opts.name, opts.target);
|
||||
|
||||
// await do_exec(rustup, ['toolchain', 'install', opts.name]);
|
||||
//
|
||||
// if (opts.default) {
|
||||
// await do_exec(rustup, ['default', opts.name]);
|
||||
// }
|
||||
//
|
||||
// if (opts.override) {
|
||||
// await do_exec(rustup, ['override', 'set', opts.name]);
|
||||
// }
|
||||
//
|
||||
// if (opts.target) {
|
||||
// await do_exec(rustup, ['target', 'add', '--toolchain', opts.name, opts.target]);
|
||||
// }
|
||||
await do_exec(rustup, ['toolchain', 'install', opts.name]);
|
||||
|
||||
if (opts.default) {
|
||||
await do_exec(rustup, ['default', opts.name]);
|
||||
}
|
||||
|
||||
if (opts.override) {
|
||||
await do_exec(rustup, ['override', 'set', opts.name]);
|
||||
}
|
||||
|
||||
if (opts.target) {
|
||||
await do_exec(rustup, ['target', 'add', '--toolchain', opts.name, opts.target]);
|
||||
}
|
||||
}
|
||||
|
||||
run();
|
||||
|
|
Loading…
Reference in a new issue