setup-php 2.27.1 → 2.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,8 +24,10 @@ get_grpc_tag() {
24
24
  add_grpc_php_plugin_brew() {
25
25
  . "${0%/*}"/tools/brew.sh
26
26
  configure_brew
27
+ [ -e /usr/local/bin/protoc ] && sudo mv /usr/local/bin/protoc /tmp/protoc && sudo mv /usr/local/include/google /tmp
27
28
  brew install grpc
28
29
  brew link --force --overwrite grpc >/dev/null 2>&1
30
+ [ -e /tmp/protoc ] && sudo mv /tmp/protoc /usr/local/bin/protoc && sudo mv /tmp/google /usr/local/include/
29
31
  grpc_tag="v$(brew info grpc | grep "grpc:" | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+")"
30
32
  license_path="$(brew --prefix grpc)/LICENSE"
31
33
  }
@@ -51,7 +51,7 @@ set_output() {
51
51
  read_env() {
52
52
  update="${update:-${UPDATE:-false}}"
53
53
  [ "${debug:-${DEBUG:-false}}" = "true" ] && debug=debug && update=true || debug=release
54
- [ "${phpts:-${PHPTS:-nts}}" = "ts" ] && ts=zts && update=true || ts=nts
54
+ [[ "${phpts:-${PHPTS:-nts}}" = "ts" || "${phpts:-${PHPTS:-nts}}" = "zts" ]] && ts=zts && update=true || ts=nts
55
55
  fail_fast="${fail_fast:-${FAIL_FAST:-false}}"
56
56
  [[ -z "${ImageOS}" && -z "${ImageVersion}" || -n ${ACT} ]] && _runner=self-hosted || _runner=github
57
57
  runner="${runner:-${RUNNER:-$_runner}}"
@@ -332,8 +332,8 @@ if(-not([Environment]::Is64BitOperatingSystem) -or $version -lt '7.0') {
332
332
  $arch = 'x86'
333
333
  }
334
334
 
335
- $ts = $env:PHPTS -eq 'ts'
336
- if($env:PHPTS -ne 'ts') {
335
+ $ts = ($env:PHPTS -match '^z?ts$')
336
+ if(-not($ts)) {
337
337
  $env:PHPTS = '-nts'
338
338
  } else {
339
339
  $env:PHPTS = ''
package/src/utils.ts CHANGED
@@ -59,7 +59,7 @@ export async function getManifestURL(): Promise<string> {
59
59
  */
60
60
  export async function parseVersion(version: string): Promise<string> {
61
61
  switch (true) {
62
- case /^(latest|nightly|\d+\.x)$/.test(version):
62
+ case /^(latest|lowest|highest|nightly|\d+\.x)$/.test(version):
63
63
  return JSON.parse((await fetch.fetch(await getManifestURL()))['data'])[
64
64
  version
65
65
  ];