mirror of https://github.com/aminya/setup-cpp
fix: add RUNNER_TOOL_CACHE
This commit is contained in:
parent
ab33fa799c
commit
87beee7e7d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -41,6 +41,7 @@ export async function setupBin(
|
||||||
setupCppDir: string
|
setupCppDir: string
|
||||||
): Promise<InstallationInfo> {
|
): Promise<InstallationInfo> {
|
||||||
process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()
|
process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()
|
||||||
|
process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACH ?? join(tmpdir(), "setup_cpp", "ToolCache")
|
||||||
|
|
||||||
const { url, binRelativeDir, extractedFolderName, extractFunction } = await getPackageInfo(version, process.platform)
|
const { url, binRelativeDir, extractedFolderName, extractFunction } = await getPackageInfo(version, process.platform)
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,6 @@ export async function setupTmpDir(testName: string) {
|
||||||
console.log("Failed to remove test directories")
|
console.log("Failed to remove test directories")
|
||||||
}
|
}
|
||||||
process.env.SETUP_CPP_DIR = tempDirectory
|
process.env.SETUP_CPP_DIR = tempDirectory
|
||||||
|
|
||||||
const toolCache = path.join(tmpdir(), "setup-cpp", "ToolCache")
|
|
||||||
process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACH ?? toolCache
|
|
||||||
|
|
||||||
return tempDirectory
|
return tempDirectory
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue