From ec153fa6ff9425f21ca9a0f85377d7af8383e9b5 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Thu, 10 Jul 2025 20:10:54 +0800 Subject: [PATCH] Workaround for swoole with alpine 3.21 --- bin/spc-alpine-docker | 6 +++--- src/globals/test-extensions.php | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bin/spc-alpine-docker b/bin/spc-alpine-docker index 58c24ce7..3bedaf5f 100755 --- a/bin/spc-alpine-docker +++ b/bin/spc-alpine-docker @@ -53,9 +53,9 @@ aarch64|arm64) exit 1 ;; esac -# if ALPINE_FROM is not set, use alpine:edge +# if ALPINE_FROM is not set, use alpine:3.21 if [ -z "$ALPINE_FROM" ]; then - ALPINE_FROM=alpine:edge + ALPINE_FROM=alpine:3.21 fi if [ "$SPC_USE_ARCH" != "$CURRENT_ARCH" ]; then echo "* Using different arch needs to setup qemu-static for docker !" @@ -64,7 +64,7 @@ if [ "$SPC_USE_ARCH" != "$CURRENT_ARCH" ]; then $DOCKER_EXECUTABLE run --rm --privileged multiarch/qemu-user-static:register --reset > /dev/null fi else - ALPINE_FROM=alpine:edge + ALPINE_FROM=alpine:3.21 fi if [ "$SPC_USE_MIRROR" = "yes" ]; then diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index 86b53b8d..e16ad76d 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -23,10 +23,10 @@ $test_php_version = [ $test_os = [ // 'macos-13', // bin/spc for x86_64 // 'macos-14', // bin/spc for arm64 - 'macos-15', // bin/spc for arm64 + // 'macos-15', // bin/spc for arm64 'ubuntu-latest', // bin/spc-alpine-docker for x86_64 - 'ubuntu-22.04', // bin/spc-gnu-docker for x86_64 - 'ubuntu-24.04', // bin/spc for x86_64 + // 'ubuntu-22.04', // bin/spc-gnu-docker for x86_64 + // 'ubuntu-24.04', // bin/spc for x86_64 // 'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64 // 'ubuntu-24.04-arm', // bin/spc for arm64 // 'windows-latest', // .\bin\spc.ps1 @@ -44,17 +44,17 @@ $upx = false; $frankenphp = false; // prefer downloading pre-built packages to speed up the build process -$prefer_pre_built = true; +$prefer_pre_built = false; // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). $extensions = match (PHP_OS_FAMILY) { - 'Linux', 'Darwin' => 'curl', + 'Linux', 'Darwin' => 'imap,swoole', 'Windows' => 'intl', }; // If you want to test shared extensions, add them below (comma separated, example `bcmath,openssl`). $shared_extensions = match (PHP_OS_FAMILY) { - 'Linux' => 'uv', + 'Linux' => '', 'Darwin' => '', 'Windows' => '', }; @@ -72,7 +72,7 @@ $with_libs = match (PHP_OS_FAMILY) { // You can use `common`, `bulk`, `minimal` or `none`. // note: combination is only available for *nix platform. Windows must use `none` combination $base_combination = match (PHP_OS_FAMILY) { - 'Linux', 'Darwin' => 'common', + 'Linux', 'Darwin' => 'minimal', 'Windows' => 'none', };