diff --git a/src/scripts/unix.sh b/src/scripts/unix.sh index 7ca19e4d..a5abf380 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 c021c893..7dfcbb76 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)) {