Add frankenphp build

This commit is contained in:
crazywhalecc
2026-04-12 23:17:50 +08:00
parent 4ddc137eae
commit 8cc5c82595
4 changed files with 256 additions and 6 deletions

View File

@@ -342,7 +342,11 @@ class php extends TargetPackage
public function postInstall(TargetPackage $package, PackageInstaller $installer): void
{
if ($package->getName() === 'frankenphp') {
$package->runStage([$this, 'smokeTestFrankenphpForUnix']);
if (SystemTarget::getTargetOS() === 'Windows') {
$package->runStage([$this, 'smokeTestFrankenphpForWindows']);
} else {
$package->runStage([$this, 'smokeTestFrankenphpForUnix']);
}
return;
}
if ($package->getName() !== 'php') {