Skip to content

Rewrite FrankenPHP build to match upstream + add Intel builds#5

Merged
munezaclovis merged 1 commit intomainfrom
worktree-frankenphp-build-action
Feb 28, 2026
Merged

Rewrite FrankenPHP build to match upstream + add Intel builds#5
munezaclovis merged 1 commit intomainfrom
worktree-frankenphp-build-action

Conversation

@munezaclovis
Copy link
Copy Markdown
Contributor

Summary

  • Rewrites the build workflow to closely match FrankenPHP's own static.yaml
  • Adds macOS x86_64 (Intel) builds via macos-15-intel runner alongside ARM64 on macos-15
  • Uses php/frankenphp repo, Go 1.26, GOTOOLCHAIN=local
  • Drops the custom PHP_EXTENSIONS override — lets FrankenPHP's default set build as upstream intended
  • Adds sanity checks after build (version, modules, php-cli)
  • Uploads build logs as artifacts on failure for debugging

Changes from previous workflow

Before After
dunglas/frankenphp php/frankenphp
macos-14 ARM only macos-15 ARM + macos-15-intel x86_64
Go 1.24 Go 1.26
Custom PHP_EXTENSIONS Default (upstream)
No sanity checks version + build-info + module grep + php-cli
No failure logs Uploads static-php-cli/log on failure

Matrix: 8 builds total

PHP 8.2, 8.3, 8.4, 8.5 × ARM64, x86_64

Test plan

  • Merge and dispatch workflow
  • Verify all 8 builds pass
  • Verify GitHub release is created with correct assets

- Use php/frankenphp repo (moved from dunglas/frankenphp)
- Add x86_64 (Intel) builds alongside ARM64 using macos-15-intel runner
- Match upstream: Go 1.26, GOTOOLCHAIN=local, compression-level: 0
- Use default PHP_EXTENSIONS (let FrankenPHP's build-static.sh decide)
- Add sanity checks (version, build-info, module list, php-cli)
- Upload build logs on failure for easier debugging
- Rename binaries to include PHP version for the release
@munezaclovis munezaclovis merged commit ba834c1 into main Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant