Skip to content

Commit 8227138

Browse files
committed
feat: add arch to cacheDir
1 parent 2e40994 commit 8227138

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/installer.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ export async function getNode(
147147
// Install into the local tool cache - node extracts with a root folder that matches the fileName downloaded
148148
//
149149
core.info('Adding to the cache ...');
150-
toolPath = await tc.cacheDir(extPath, 'node', info.resolvedVersion);
150+
toolPath = await tc.cacheDir(
151+
extPath,
152+
'node',
153+
info.resolvedVersion,
154+
info.arch
155+
);
151156
core.info('Done');
152157
}
153158

@@ -364,7 +369,7 @@ async function acquireNodeFromFallbackLocation(
364369
throw err;
365370
}
366371
}
367-
let toolPath = await tc.cacheDir(tempDir, 'node', version);
372+
let toolPath = await tc.cacheDir(tempDir, 'node', version, arch);
368373
core.addPath(toolPath);
369374
return toolPath;
370375
}

0 commit comments

Comments
 (0)