mirror of
https://github.com/Mozilla-Actions/sccache-action.git
synced 2026-04-08 17:42:13 +08:00
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -51,7 +51,7 @@ function setup() {
|
||||
console.log('try to setup from url: ', downloadUrl);
|
||||
// Download and extract.
|
||||
const sccachePackage = yield (0, tool_cache_1.downloadTool)(downloadUrl);
|
||||
const sccachePath = (yield (0, tool_cache_1.extractTar)(sccachePackage)) + `/sccache`;
|
||||
const sccachePath = yield (0, tool_cache_1.extractTar)(sccachePackage);
|
||||
// Cache sccache.
|
||||
const sccacheHome = yield (0, tool_cache_1.cacheDir)(sccachePath, 'sccache', version);
|
||||
// Add cached sccache into path.
|
||||
|
||||
@@ -17,7 +17,7 @@ async function setup() {
|
||||
|
||||
// Download and extract.
|
||||
const sccachePackage = await downloadTool(downloadUrl);
|
||||
const sccachePath = (await extractTar(sccachePackage)) + `/sccache`;
|
||||
const sccachePath = await extractTar(sccachePackage);
|
||||
|
||||
// Cache sccache.
|
||||
const sccacheHome = await cacheDir(sccachePath, 'sccache', version);
|
||||
|
||||
Reference in New Issue
Block a user