From da9dfe4a7163376c5b3b8ed8408532d7fae76938 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 5 Jul 2022 12:03:30 +0530 Subject: [PATCH] Set RUNNER_TOOL_CACHE on self-hosted environments --- src/scripts/unix.sh | 1 + src/scripts/win32.ps1 | 1 + 2 files changed, 2 insertions(+) diff --git a/src/scripts/unix.sh b/src/scripts/unix.sh index 7ca19e4d7..a5abf3808 100644 --- a/src/scripts/unix.sh +++ b/src/scripts/unix.sh @@ -151,6 +151,7 @@ self_hosted_setup() { exit 1 else self_hosted_helper >/dev/null 2>&1 + add_env RUNNER_TOOL_CACHE /tmp fi fi } diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index c021c893f..7dfcbb768 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -296,6 +296,7 @@ if(-not($env:ImageOS) -and -not($env:ImageVersion)) { New-Item $php_dir -Type Directory -Force > $null 2>&1 Add-Path -PathItem $php_dir setx PHPROOT $php_dir >$null 2>&1 + Add-Env -EnvName RUNNER_TOOL_CACHE -EnvValue $env:TEMP } else { $current_profile = "$PSHOME\Profile.ps1" if(-not(Test-Path -LiteralPath $current_profile)) {