Merge pull request #8 from softprops/self-update

update rustup before for reliable nightly toolchain tool availability
This commit is contained in:
Héctor Ramón 2019-10-27 18:30:23 +01:00 committed by GitHub
commit 1cba3cf86a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,10 @@ export async function install() {
core.debug('rustup is located under: ' + toolPath);
core.addPath(path.join(toolPath, 'bin'));
} else {
// update the GitHub managed VM version of rustup
// to leverage newer features like "latest latest compatible nightly"
await exec.exec('rustup', ['self', 'update']);
}
}