Skip to content

Commit

Permalink
fix: add RUNNER_TOOL_CACHE
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 17, 2021
1 parent ab33fa7 commit 87beee7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/setup_cpp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/setup_cpp.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/utils/setup/setupBin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 0 additions & 4 deletions src/utils/tests/test-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 87beee7

Please sign in to comment.