extension test

This commit is contained in:
crazywhalecc 2025-07-15 21:57:06 +08:00
parent b9e096abfa
commit 88cf0184cc
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
2 changed files with 13 additions and 12 deletions

View File

@ -82,9 +82,9 @@ jobs:
- zlib
- zstd
php-version:
- "8.4"
- "8.5"
operating-system:
- "ubuntu-latest"
- "ubuntu-24.04"
#- "macos-13"
#- "debian-arm64-self-hosted"
- "macos-14"

View File

@ -13,18 +13,19 @@ declare(strict_types=1);
// test php version (8.1 ~ 8.4 available, multiple for matrix)
$test_php_version = [
'8.1',
'8.2',
'8.3',
'8.4',
// '8.1',
// '8.2',
// '8.3',
// '8.4',
'8.5',
];
// test os (macos-13, macos-14, macos-15, ubuntu-latest, windows-latest are available)
$test_os = [
// 'macos-13', // bin/spc for x86_64
'macos-13', // bin/spc for x86_64
// 'macos-14', // bin/spc for arm64
'macos-15', // bin/spc for arm64
'ubuntu-latest', // bin/spc-alpine-docker for x86_64
// '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-arm', // bin/spc-gnu-docker for arm64
@ -33,7 +34,7 @@ $test_os = [
];
// whether enable thread safe
$zts = true;
$zts = false;
$no_strip = false;
@ -44,7 +45,7 @@ $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) {
@ -54,7 +55,7 @@ $extensions = match (PHP_OS_FAMILY) {
// 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 +73,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' => 'bulk',
'Windows' => 'none',
};