add support for adding rustup targets
This commit is contained in:
@@ -26,6 +26,10 @@ function run() {
|
||||
.split(',')
|
||||
.map((component) => component.trim())
|
||||
.filter((component) => component.length > 0);
|
||||
const targets = core.getInput('targets')
|
||||
.split(',')
|
||||
.map((target) => target.trim())
|
||||
.filter((target) => target.length > 0);
|
||||
if (version) {
|
||||
yield rustup.install();
|
||||
yield exec.exec('rustup', ['default', version]);
|
||||
@@ -33,6 +37,9 @@ function run() {
|
||||
for (let component of components) {
|
||||
yield exec.exec('rustup', ['component', 'add', component]);
|
||||
}
|
||||
for (let target of targets) {
|
||||
yield exec.exec('rustup', ['target', 'add', target]);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
|
Reference in New Issue
Block a user