From 0a43bd17a03a33152afd1f99a486f98e391471eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sun, 27 Oct 2019 19:50:05 +0100 Subject: [PATCH] Set rustup profile to minimal when already present --- lib/rustup.js | 3 ++- src/rustup.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/rustup.js b/lib/rustup.js index 6ff1704..e3d06ee 100644 --- a/lib/rustup.js +++ b/lib/rustup.js @@ -31,9 +31,10 @@ function install() { core.addPath(path.join(toolPath, 'bin')); } 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" yield exec.exec('rustup', ['self', 'update']); + yield exec.exec('rustup', ['set', 'profile', 'minimal']); } }); } diff --git a/src/rustup.ts b/src/rustup.ts index f2b412c..1613512 100644 --- a/src/rustup.ts +++ b/src/rustup.ts @@ -15,9 +15,11 @@ 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 + // 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', ['set', 'profile', 'minimal']); } }