Unique primaryKey for cache based on buildTargetArch

This commit is contained in:
Anton Izmailov 2025-09-25 14:26:45 +02:00
parent c0137caad7
commit af7fba4129
4 changed files with 16 additions and 6 deletions

View file

@ -20,6 +20,7 @@ export async function run() {
setGoToolchain();
const cache = core.getBooleanInput('cache');
const buildTarget = core.getInput('buildTarget');
core.info(`Setup go version spec ${versionSpec}`);
let arch = core.getInput('architecture') as Architecture;
@ -73,7 +74,8 @@ export async function run() {
await restoreCache(
parseGoVersion(goVersion),
packageManager,
cacheDependencyPath
cacheDependencyPath,
buildTarget
);
} catch (error) {
core.warning(`Restore cache failed: ${(error as Error).message}`);