0
0
Fork 0
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:
Rebecca Turner 2022-07-19 12:17:23 -04:00
parent 88dc235639
commit eefcf7f616
5 changed files with 27 additions and 7 deletions

View file

@ -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();