From 80da5fe0138d3edc1005752cef87a3ce138d42dd Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Thu, 22 May 2025 11:25:45 +0800 Subject: [PATCH] add `SPC_OPT_DOWNLOAD_ARGS` to attempt to fix osx build on gh runner --- builds/osx/build-osx.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builds/osx/build-osx.sh b/builds/osx/build-osx.sh index 9760d07e..05826440 100755 --- a/builds/osx/build-osx.sh +++ b/builds/osx/build-osx.sh @@ -113,7 +113,8 @@ log "Exporting build environment variables..." export PHP_VERSION=8.2 export PHP_EXTENSIONS="pdo_mysql,gd,bcmath,redis,intl,zip,gmp,apcu,opcache,imagick,sockets,pcntl,geos,iconv,mbstring,fileinfo,ctype,tokenizer,simplexml,dom,filter,session" export PHP_EXTENSION_LIBS="libgeos,libzip,bzip2,libxml2,openssl,zlib" -export SPC_REL_TYPE=binary # use binary on osx build instead of `source` +export SPC_REL_TYPE=source +export SPC_OPT_DOWNLOAD_ARGS="--ignore-cache-sources=php-src --retry 5 --prefer-pre-built" export NO_COMPRESS=1 export SPC_OPT_BUILD_ARGS="--debug" export CMAKE_OSX_ARCHITECTURES=arm64