Merge remote-tracking branch 'origin/main' into fix/icurel

This commit is contained in:
DubbleClick
2025-06-05 16:48:47 +07:00
5 changed files with 45 additions and 19 deletions

View File

@@ -192,3 +192,21 @@ function f_putenv(string $env): bool
logger()->debug('Setting env: ' . $env);
return putenv($env);
}
/**
* Get the installed CMake version
*
* @return null|string The CMake version or null if it couldn't be determined
*/
function get_cmake_version(): ?string
{
try {
[,$output] = shell()->execWithResult('cmake --version', false);
if (preg_match('/cmake version ([\d.]+)/i', $output[0], $matches)) {
return $matches[1];
}
} catch (Exception $e) {
logger()->warning('Failed to get CMake version: ' . $e->getMessage());
}
return null;
}

View File

@@ -13,9 +13,9 @@ 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.1',
'8.2',
'8.3',
'8.4',
];