testing cache

This commit is contained in:
Mario Minardi 2026-07-10 14:15:01 -06:00
parent 546937c0d1
commit 45f855162c
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -139,7 +139,6 @@ jobs:
audience: ${{ matrix.credential-type == 'workload-identity' && secrets.TS_AUDIENCE || ''}}
tags: "tag:ci"
version: "${{ matrix.version }}"
use-cache: false
timeout: "5m"
retry: 3
ping: "${{ matrix.ping }}"

View file

@ -387,6 +387,8 @@ async function installTailscale(
const cacheKey = generateCacheKey(config, runnerOS);
const toolPath = getToolPath(config, runnerOS);
logInfo(config.logMode, `cache key is ${cacheKey} and tool path is ${toolPath}`);
// Try to restore from cache first
if (config.useCache && cacheKey) {
const cacheHit = await cache.restoreCache([toolPath], cacheKey);