diff --git a/src/vcpkg-utils.ts b/src/vcpkg-utils.ts index 17b1e510..90fad0fd 100644 --- a/src/vcpkg-utils.ts +++ b/src/vcpkg-utils.ts @@ -115,7 +115,12 @@ export class Utils { } key += "-args=" + Utils.hashCode(core.getInput(runvcpkglib.vcpkgArguments)); - key += "-os=" + Utils.hashCode(process.platform); + key += "-os=" + Utils.hashCode(process.env.IMAGE_OS ? process.env.IMAGE_OS : process.platform); + + if (process.env.IMAGE_VERSION) { + key += "-imageVer=" + Utils.hashCode(process.env.IMAGE_VERSION); + } + key += "-appendedKey=" + Utils.hashCode(appendedCacheKey); // Add the triplet only if it is provided.