Skip to content

Commit ec153fa

Browse files
committed
Workaround for swoole with alpine 3.21
1 parent dd72b32 commit ec153fa

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

bin/spc-alpine-docker

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ aarch64|arm64)
5353
exit 1
5454
;;
5555
esac
56-
# if ALPINE_FROM is not set, use alpine:edge
56+
# if ALPINE_FROM is not set, use alpine:3.21
5757
if [ -z "$ALPINE_FROM" ]; then
58-
ALPINE_FROM=alpine:edge
58+
ALPINE_FROM=alpine:3.21
5959
fi
6060
if [ "$SPC_USE_ARCH" != "$CURRENT_ARCH" ]; then
6161
echo "* Using different arch needs to setup qemu-static for docker !"
@@ -64,7 +64,7 @@ if [ "$SPC_USE_ARCH" != "$CURRENT_ARCH" ]; then
6464
$DOCKER_EXECUTABLE run --rm --privileged multiarch/qemu-user-static:register --reset > /dev/null
6565
fi
6666
else
67-
ALPINE_FROM=alpine:edge
67+
ALPINE_FROM=alpine:3.21
6868
fi
6969

7070
if [ "$SPC_USE_MIRROR" = "yes" ]; then

src/globals/test-extensions.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
$test_os = [
2424
// 'macos-13', // bin/spc for x86_64
2525
// 'macos-14', // bin/spc for arm64
26-
'macos-15', // bin/spc for arm64
26+
// 'macos-15', // bin/spc for arm64
2727
'ubuntu-latest', // bin/spc-alpine-docker for x86_64
28-
'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
29-
'ubuntu-24.04', // bin/spc for x86_64
28+
// 'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
29+
// 'ubuntu-24.04', // bin/spc for x86_64
3030
// 'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
3131
// 'ubuntu-24.04-arm', // bin/spc for arm64
3232
// 'windows-latest', // .\bin\spc.ps1
@@ -44,17 +44,17 @@
4444
$frankenphp = false;
4545

4646
// prefer downloading pre-built packages to speed up the build process
47-
$prefer_pre_built = true;
47+
$prefer_pre_built = false;
4848

4949
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
5050
$extensions = match (PHP_OS_FAMILY) {
51-
'Linux', 'Darwin' => 'curl',
51+
'Linux', 'Darwin' => 'imap,swoole',
5252
'Windows' => 'intl',
5353
};
5454

5555
// If you want to test shared extensions, add them below (comma separated, example `bcmath,openssl`).
5656
$shared_extensions = match (PHP_OS_FAMILY) {
57-
'Linux' => 'uv',
57+
'Linux' => '',
5858
'Darwin' => '',
5959
'Windows' => '',
6060
};
@@ -72,7 +72,7 @@
7272
// You can use `common`, `bulk`, `minimal` or `none`.
7373
// note: combination is only available for *nix platform. Windows must use `none` combination
7474
$base_combination = match (PHP_OS_FAMILY) {
75-
'Linux', 'Darwin' => 'common',
75+
'Linux', 'Darwin' => 'minimal',
7676
'Windows' => 'none',
7777
};
7878

0 commit comments

Comments
 (0)