Fix build

Signed-off-by: Xuanwo <github@xuanwo.io>
This commit is contained in:
Xuanwo
2023-01-09 23:34:11 +08:00
parent 83838b1674
commit 18887b64db
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ function setup() {
console.log('try to setup from url: ', downloadUrl); console.log('try to setup from url: ', downloadUrl);
// Download and extract. // Download and extract.
const sccachePackage = yield (0, tool_cache_1.downloadTool)(downloadUrl); 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. // Cache sccache.
const sccacheHome = yield (0, tool_cache_1.cacheDir)(sccachePath, 'sccache', version); const sccacheHome = yield (0, tool_cache_1.cacheDir)(sccachePath, 'sccache', version);
// Add cached sccache into path. // Add cached sccache into path.
+1 -1
View File
@@ -17,7 +17,7 @@ async function setup() {
// Download and extract. // Download and extract.
const sccachePackage = await downloadTool(downloadUrl); const sccachePackage = await downloadTool(downloadUrl);
const sccachePath = (await extractTar(sccachePackage)) + `/sccache`; const sccachePath = await extractTar(sccachePackage);
// Cache sccache. // Cache sccache.
const sccacheHome = await cacheDir(sccachePath, 'sccache', version); const sccacheHome = await cacheDir(sccachePath, 'sccache', version);