From 18887b64db21337d1d8363a25ae08c6ca521e1e0 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Mon, 9 Jan 2023 23:34:11 +0800 Subject: [PATCH] Fix build Signed-off-by: Xuanwo --- dist/index.js | 2 +- src/sccache.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8b24262..3502542 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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. diff --git a/src/sccache.ts b/src/sccache.ts index c380de3..099d356 100644 --- a/src/sccache.ts +++ b/src/sccache.ts @@ -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);