Set rustup profile to minimal when already present
This commit is contained in:
parent
43013c6795
commit
0a43bd17a0
@ -31,9 +31,10 @@ function install() {
|
|||||||
core.addPath(path.join(toolPath, 'bin'));
|
core.addPath(path.join(toolPath, 'bin'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// update the GitHub managed VM version of rustup
|
// Update the GitHub managed VM version of rustup
|
||||||
// to leverage newer features like "latest latest compatible nightly"
|
// to leverage newer features like "latest latest compatible nightly"
|
||||||
yield exec.exec('rustup', ['self', 'update']);
|
yield exec.exec('rustup', ['self', 'update']);
|
||||||
|
yield exec.exec('rustup', ['set', 'profile', 'minimal']);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -15,9 +15,11 @@ export async function install() {
|
|||||||
core.debug('rustup is located under: ' + toolPath);
|
core.debug('rustup is located under: ' + toolPath);
|
||||||
core.addPath(path.join(toolPath, 'bin'));
|
core.addPath(path.join(toolPath, 'bin'));
|
||||||
} else {
|
} else {
|
||||||
// update the GitHub managed VM version of rustup
|
// Update the GitHub managed VM version of rustup
|
||||||
// to leverage newer features like "latest latest compatible nightly"
|
// to leverage newer features like "latest latest compatible nightly"
|
||||||
await exec.exec('rustup', ['self', 'update']);
|
await exec.exec('rustup', ['self', 'update']);
|
||||||
|
|
||||||
|
await exec.exec('rustup', ['set', 'profile', 'minimal']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user