mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Merge branch 'main' into fix/php85
This commit is contained in:
commit
da5c6fd084
@ -82,14 +82,14 @@ class LinuxToolCheckList
|
|||||||
return CheckResult::ok();
|
return CheckResult::ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[AsCheckItem('if cmake version >= 3.18', limit_os: 'Linux')]
|
#[AsCheckItem('if cmake version >= 3.22', limit_os: 'Linux')]
|
||||||
public function checkCMakeVersion(): ?CheckResult
|
public function checkCMakeVersion(): ?CheckResult
|
||||||
{
|
{
|
||||||
$ver = get_cmake_version();
|
$ver = get_cmake_version();
|
||||||
if ($ver === null) {
|
if ($ver === null) {
|
||||||
return CheckResult::fail('Failed to get cmake version');
|
return CheckResult::fail('Failed to get cmake version');
|
||||||
}
|
}
|
||||||
if (version_compare($ver, '3.18.0') < 0) {
|
if (version_compare($ver, '3.22.0') < 0) {
|
||||||
return CheckResult::fail('cmake version is too low (' . $ver . '), please update it manually!');
|
return CheckResult::fail('cmake version is too low (' . $ver . '), please update it manually!');
|
||||||
}
|
}
|
||||||
return CheckResult::ok($ver);
|
return CheckResult::ok($ver);
|
||||||
|
|||||||
@ -205,7 +205,7 @@ SET(CMAKE_INSTALL_PREFIX "{$root}")
|
|||||||
SET(CMAKE_INSTALL_LIBDIR "lib")
|
SET(CMAKE_INSTALL_LIBDIR "lib")
|
||||||
|
|
||||||
set(PKG_CONFIG_EXECUTABLE "{$pkgConfigExecutable}")
|
set(PKG_CONFIG_EXECUTABLE "{$pkgConfigExecutable}")
|
||||||
list(APPEND PKG_CONFIG_EXECUTABLE "--static")
|
set(PKG_CONFIG_ARGN "--static" CACHE STRING "Extra arguments for pkg-config" FORCE)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||||
|
|||||||
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
// test php version (8.1 ~ 8.4 available, multiple for matrix)
|
// test php version (8.1 ~ 8.4 available, multiple for matrix)
|
||||||
$test_php_version = [
|
$test_php_version = [
|
||||||
// '8.1',
|
'8.1',
|
||||||
// '8.2',
|
// '8.2',
|
||||||
// '8.3',
|
// '8.3',
|
||||||
// '8.4',
|
// '8.4',
|
||||||
@ -55,8 +55,8 @@ $extensions = match (PHP_OS_FAMILY) {
|
|||||||
|
|
||||||
// If you want to test shared extensions, add them below (comma separated, example `bcmath,openssl`).
|
// If you want to test shared extensions, add them below (comma separated, example `bcmath,openssl`).
|
||||||
$shared_extensions = match (PHP_OS_FAMILY) {
|
$shared_extensions = match (PHP_OS_FAMILY) {
|
||||||
'Linux' => 'mysqli',
|
'Linux' => '',
|
||||||
'Darwin' => 'zip',
|
'Darwin' => '',
|
||||||
'Windows' => '',
|
'Windows' => '',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user