mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Fix installing zts builds
This commit is contained in:
parent
bbe1204148
commit
de2903ad82
@ -51,7 +51,7 @@ set_output() {
|
|||||||
read_env() {
|
read_env() {
|
||||||
update="${update:-${UPDATE:-false}}"
|
update="${update:-${UPDATE:-false}}"
|
||||||
[ "${debug:-${DEBUG:-false}}" = "true" ] && debug=debug && update=true || debug=release
|
[ "${debug:-${DEBUG:-false}}" = "true" ] && debug=debug && update=true || debug=release
|
||||||
[ "${phpts:-${PHPTS:-nts}}" = "ts" ] && ts=zts && update=true || ts=nts
|
[[ "${phpts:-${PHPTS:-nts}}" = "ts" || "${phpts:-${PHPTS:-nts}}" = "zts" ]] && ts=zts && update=true || ts=nts
|
||||||
fail_fast="${fail_fast:-${FAIL_FAST:-false}}"
|
fail_fast="${fail_fast:-${FAIL_FAST:-false}}"
|
||||||
[[ -z "${ImageOS}" && -z "${ImageVersion}" || -n ${ACT} ]] && _runner=self-hosted || _runner=github
|
[[ -z "${ImageOS}" && -z "${ImageVersion}" || -n ${ACT} ]] && _runner=self-hosted || _runner=github
|
||||||
runner="${runner:-${RUNNER:-$_runner}}"
|
runner="${runner:-${RUNNER:-$_runner}}"
|
||||||
|
@ -332,8 +332,8 @@ if(-not([Environment]::Is64BitOperatingSystem) -or $version -lt '7.0') {
|
|||||||
$arch = 'x86'
|
$arch = 'x86'
|
||||||
}
|
}
|
||||||
|
|
||||||
$ts = $env:PHPTS -eq 'ts'
|
$ts = ($env:PHPTS -match '^z?ts$')
|
||||||
if($env:PHPTS -ne 'ts') {
|
if(-not($ts)) {
|
||||||
$env:PHPTS = '-nts'
|
$env:PHPTS = '-nts'
|
||||||
} else {
|
} else {
|
||||||
$env:PHPTS = ''
|
$env:PHPTS = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user