mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-05-17 14:44:46 +00:00
Add uv-cache-hit and test CI
This commit is contained in:
parent
e85263fd93
commit
50d654e3c5
4 changed files with 26 additions and 7 deletions
2
dist/setup/index.js
generated
vendored
2
dist/setup/index.js
generated
vendored
|
@ -90010,8 +90010,10 @@ function setupUv(platform, arch, versionInput, checkSum, githubToken) {
|
|||
const toolCacheResult = (0, download_version_1.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 = yield (0, download_version_1.downloadVersion)(platform, arch, resolvedVersion, checkSum, githubToken);
|
||||
return { uvDir: versionResult.cachedToolDir, version: versionResult.version };
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue