From 5aca3d29d9dc07b0a189aaf9d920a567e4a394fa Mon Sep 17 00:00:00 2001 From: Jonas Geschke Date: Tue, 15 Oct 2019 10:50:49 +0200 Subject: [PATCH] added selection of new rustup profile minimal introduced with rustup version 1.20.0 --- lib/rustup.js | 2 +- src/rustup.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/rustup.js b/lib/rustup.js index 71b7afa..70172fb 100644 --- a/lib/rustup.js +++ b/lib/rustup.js @@ -37,7 +37,7 @@ function installOnUnix() { return __awaiter(this, void 0, void 0, function* () { let script = yield toolCache.downloadTool("https://sh.rustup.rs"); fs_1.chmodSync(script, '777'); - yield exec.exec(`"${script}"`, ['-y', '--default-toolchain', 'none']); + yield exec.exec(`"${script}"`, ['-y', '--default-toolchain', 'none', '--profile=minimal']); return path.join(process.env['HOME'] || '', '.cargo'); }); } diff --git a/src/rustup.ts b/src/rustup.ts index 226e33f..3341d7b 100644 --- a/src/rustup.ts +++ b/src/rustup.ts @@ -1,6 +1,5 @@ import * as core from '@actions/core'; import * as exec from '@actions/exec'; -import * as io from '@actions/io'; import * as toolCache from '@actions/tool-cache'; import * as path from 'path'; import * as os from 'os'; @@ -22,7 +21,7 @@ async function installOnUnix(): Promise { let script = await toolCache.downloadTool("https://sh.rustup.rs"); chmodSync(script, '777'); - await exec.exec(`"${script}"`, ['-y', '--default-toolchain', 'none']); + await exec.exec(`"${script}"`, ['-y', '--default-toolchain', 'none', '--profile=minimal']); return path.join(process.env['HOME'] || '', '.cargo'); }