Merge pull request #6 from kegesch/master
Selection of new rustup profile minimal introduced with rustup version 1.20.0
This commit is contained in:
commit
cfe784a387
@ -37,7 +37,7 @@ function installOnUnix() {
|
|||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
let script = yield toolCache.downloadTool("https://sh.rustup.rs");
|
let script = yield toolCache.downloadTool("https://sh.rustup.rs");
|
||||||
fs_1.chmodSync(script, '777');
|
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');
|
return path.join(process.env['HOME'] || '', '.cargo');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
import * as exec from '@actions/exec';
|
import * as exec from '@actions/exec';
|
||||||
import * as io from '@actions/io';
|
|
||||||
import * as toolCache from '@actions/tool-cache';
|
import * as toolCache from '@actions/tool-cache';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import * as os from 'os';
|
import * as os from 'os';
|
||||||
@ -22,7 +21,7 @@ async function installOnUnix(): Promise<string> {
|
|||||||
let script = await toolCache.downloadTool("https://sh.rustup.rs");
|
let script = await toolCache.downloadTool("https://sh.rustup.rs");
|
||||||
|
|
||||||
chmodSync(script, '777');
|
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');
|
return path.join(process.env['HOME'] || '', '.cargo');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user