mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Set RUNNER_TOOL_CACHE on self-hosted environments
This commit is contained in:
parent
a863ab6d3d
commit
da9dfe4a71
@ -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
|
||||
}
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user