mirror of
https://github.com/actions-rs/toolchain.git
synced 2025-07-11 17:42:50 +03:00
Support multiple targets
This commit is contained in:
parent
88dc235639
commit
eefcf7f616
5 changed files with 27 additions and 7 deletions
src
|
@ -79,8 +79,10 @@ async function run(): Promise<void> {
|
|||
|
||||
await rustup.installToolchain(opts.name, installOptions);
|
||||
|
||||
if (opts.target) {
|
||||
await rustup.addTarget(opts.target, opts.name);
|
||||
if (opts.targets) {
|
||||
for (const target of opts.targets) {
|
||||
await rustup.addTarget(target, opts.name);
|
||||
}
|
||||
}
|
||||
|
||||
await versions.gatherInstalledVersions();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue