add sha to cacheky #18
This commit is contained in:
+2
-1
@@ -21,7 +21,8 @@ export async function unixInstall(version: Version): Promise<void> {
|
||||
|
||||
if (version.type !== 'local') {
|
||||
const ver = version.version;
|
||||
const cacheKey = `xmake-cache-${ver}-${os.arch()}-${os.platform()}-${process.env.RUNNER_OS ?? 'unknown'}`;
|
||||
const sha = version.sha;
|
||||
const cacheKey = `xmake-cache-${ver}-${sha}-${os.arch()}-${os.platform()}-${process.env.RUNNER_OS ?? 'unknown'}`;
|
||||
|
||||
if (actionsCacheFolder && process.env.GITHUB_WORKSPACE) {
|
||||
const fullCachePath = path.join(process.env.GITHUB_WORKSPACE, actionsCacheFolder);
|
||||
|
||||
Reference in New Issue
Block a user