diff --git a/src/main.ts b/src/main.ts index 0d4db90..5143c57 100644 --- a/src/main.ts +++ b/src/main.ts @@ -17,6 +17,11 @@ async function run() { if(version) { await rustup.install(); + if (os.platform() !== 'darwin') { + // update the GitHub managed VM version of rustup + // to leverage newer features like "latest latest compatible nightly" + await exec.exec('rustup', ['self', 'update']); + } await exec.exec('rustup', ['default', version]); await exec.exec('rustup', ['update', version]);