Add uv-cache-hit and test CI

This commit is contained in:
pollenjp 2024-11-30 01:46:41 +09:00
parent e85263fd93
commit 50d654e3c5
4 changed files with 26 additions and 7 deletions

View file

@ -80,8 +80,10 @@ async function setupUv(
const toolCacheResult = tryGetFromToolCache(arch, resolvedVersion);
if (toolCacheResult.installedPath) {
core.info(`Found uv in tool-cache for ${resolvedVersion}`);
core.setOutput("uv-cache-hit", true);
return { uvDir: toolCacheResult.installedPath, version: resolvedVersion };
}
core.setOutput("uv-cache-hit", false);
const versionResult = await downloadVersion(
platform,