mirror of
https://github.com/mozilla-actions/sccache-action
synced 2026-09-14 20:13:56 +00:00
+4
-4
@@ -24,13 +24,13 @@ async function setup() {
|
||||
// TODO: we can support install latest version by default if version
|
||||
// is not input.
|
||||
const version = core.getInput('version');
|
||||
core.debug(`try to setup sccache version: ${version}'`);
|
||||
core.info(`try to setup sccache version: ${version}'`);
|
||||
|
||||
const filename = getFilename(version);
|
||||
const dirname = getDirname(version);
|
||||
|
||||
const downloadUrl = `https://github.com/mozilla/sccache/releases/download/${version}/${filename}`;
|
||||
core.debug(`sccache download from url: ${downloadUrl}`);
|
||||
core.info(`sccache download from url: ${downloadUrl}`);
|
||||
|
||||
// Download and extract.
|
||||
const sccachePackage = await downloadTool(downloadUrl);
|
||||
@@ -41,7 +41,7 @@ async function setup() {
|
||||
} else {
|
||||
sccachePath = await extractTar(sccachePackage);
|
||||
}
|
||||
core.debug(`sccache extracted to: ${sccachePath}`);
|
||||
core.info(`sccache extracted to: ${sccachePath}`);
|
||||
|
||||
// Cache sccache.
|
||||
const sccacheHome = await cacheDir(
|
||||
@@ -49,7 +49,7 @@ async function setup() {
|
||||
'sccache',
|
||||
version
|
||||
);
|
||||
core.debug(`sccache cached to: ${sccacheHome}`);
|
||||
core.info(`sccache cached to: ${sccacheHome}`);
|
||||
|
||||
// Add cached sccache into path.
|
||||
core.addPath(`${sccacheHome}`);
|
||||
|
||||
Reference in New Issue
Block a user