Skip to content

Commit 87beee7

Browse files
committed
fix: add RUNNER_TOOL_CACHE
1 parent ab33fa7 commit 87beee7

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

dist/setup_cpp.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/setup/setupBin.ts

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export async function setupBin(
4141
setupCppDir: string
4242
): Promise<InstallationInfo> {
4343
process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()
44+
process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACH ?? join(tmpdir(), "setup_cpp", "ToolCache")
4445

4546
const { url, binRelativeDir, extractedFolderName, extractFunction } = await getPackageInfo(version, process.platform)
4647

src/utils/tests/test-helpers.ts

-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ export async function setupTmpDir(testName: string) {
1414
console.log("Failed to remove test directories")
1515
}
1616
process.env.SETUP_CPP_DIR = tempDirectory
17-
18-
const toolCache = path.join(tmpdir(), "setup-cpp", "ToolCache")
19-
process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACH ?? toolCache
20-
2117
return tempDirectory
2218
}
2319

0 commit comments

Comments
 (0)