-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distributing extension #213
Comments
Hello! Yes easily distributing an extension is in my mind. For the moment you had to setup a CI with matrix of all targets you want to distribute + all PHP versions for each. The same apply with packaging a .deb. |
If you want another example, here's my GitHub Actions workflow: https://github.com/joehoyle/php-v8js/blob/main/.github/workflows/build.yml which does x86/arm64 builds for linux and macos for PHP 8, 8.1 and 8.2 |
@joehoyle would be happy if you can provide a PR here to add this example |
@ptondereau is that best under the Guides in the book? Perhaps |
Could be a good start indeed! |
@rmccue also put together https://github.com/humanmade/ext-php-rs-starter |
Any ideas on how to distribute extensions via https://github.com/php/pie |
Related issue : |
@aszenz depends on how pie builds the dependencies. Seems like on linux this is handled by pie and only windows has prebuild dependencies. I usually use a Dockerfile to build my extensions. Using parameters I can select the php and os version (mostly because of glibc). |
Is there a go-to solution for packaging the built extension?
I'd like to offer a .deb package and I'm wondering if there is an easy way to do this.
There are some things online about creating it manually:
Extensions can also be installed via PECL. If .deb is not an option, would that be a viable thing?
The text was updated successfully, but these errors were encountered: