Merge branch 'improv/zts' of https://github.com/flavioheleno/setup-php into flavioheleno-improv/zts

This commit is contained in:
Shivam Mathur
2022-10-17 17:03:20 +05:30
2 changed files with 8 additions and 2 deletions

View File

@ -51,10 +51,16 @@ set_output() {
read_env() {
update="${update:-${UPDATE:-false}}"
[ "${debug:-${DEBUG:-false}}" = "true" ] && debug=debug && update=true || debug=release
[ "${phpts:-${PHPTS:-nts}}" = "ts" ] && ts=zts && update=true || ts=nts
fail_fast="${fail_fast:-${FAIL_FAST:-false}}"
[[ -z "${ImageOS}" && -z "${ImageVersion}" ]] && _runner=self-hosted || _runner=github
runner="${runner:-${RUNNER:-$_runner}}"
export fail_fast
export runner
export update
export ts
if [[ "$runner" = "github" && $_runner = "self-hosted" ]]; then
fail_fast=true
add_log "$cross" "Runner" "Runner set as github in self-hosted environment"