fix: add RUNNER_TOOL_CACHE

This commit is contained in:
Amin Yahyaabadi 2021-09-17 16:18:02 -05:00
parent ab33fa799c
commit 87beee7e7d
4 changed files with 3 additions and 6 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -41,6 +41,7 @@ export async function setupBin(
setupCppDir: string
): Promise<InstallationInfo> {
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)

View File

@ -14,10 +14,6 @@ export async function setupTmpDir(testName: string) {
console.log("Failed to remove test directories")
}
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
}