From 9fe8278c96504807d8d2bd44f32d460553b5a3c9 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 1 Sep 2026 10:36:34 +0530 Subject: [PATCH] Skip php-darwin cache on Intel macOS --- src/scripts/darwin.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index 63b174d0..6624fe47 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -188,7 +188,8 @@ 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" ] && setup_cached_versions; then + if [ "${arch:?}" = "arm64" ] && [ "${runner:?}" != "self-hosted" ] && \ + [ "${use_package_cache:-true}" != "false" ] && setup_cached_versions; then return 0 fi update_dependencies