Compare commits

...

2 Commits

Author SHA1 Message Date
Shivam Mathur 94719cf4ae Always install PHP from php-darwin on Intel Macs 2026-09-25 22:19:29 +05:30
Shivam Mathur d211942997 Pass macOS extensions to the PHP cache installer 2026-09-25 17:27:00 +05:30
+3 -3
View File
@@ -184,7 +184,7 @@ get_brewed_php() {
# Function to setup PHP from the cached builds.
setup_cached_versions() {
latest="releases/download/php-$version" run_script \
"php-darwin" "$version" "${debug:?}" "${ts:?}" >/dev/null 2>&1
"php-darwin" "$version" "${debug:?}" "${ts:?}" "" "${INPUT_EXTENSIONS:-}" >/dev/null 2>&1
}
# Function to setup PHP 5.6 and newer using Homebrew.
@@ -196,7 +196,7 @@ add_php() {
php_keg="php@$version$suffix"
php_formula="shivammathur/php/$php_keg"
if [[ "$existing_version" = "false" || -n "$suffix" || "$action" = "upgrade" ]]; then
if [ "${runner:?}" != "self-hosted" ] && [ "${use_package_cache:-true}" != "false" ]; then
if [ "$(uname -m)" = "x86_64" ] || { [ "${runner:?}" != "self-hosted" ] && [ "${use_package_cache:-true}" != "false" ]; }; then
setup_cached_versions && return 0
[ "$(uname -m)" != "x86_64" ] || return 1
fi
@@ -270,7 +270,7 @@ setup_php() {
php_config="$(command -v php-config 2>/dev/null)"
update=true
check_pre_installed
existing_version=$(get_brewed_php)
existing_version=$([ "$(uname -m)" != "x86_64" ] && get_brewed_php || echo false)
status="Found"
if [[ "$version" =~ ${old_versions:?} ]]; then
run_script "php5-darwin" "${version/./}" >/dev/null 2>&1