Skip to content
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

Add pecl pipelines for phpize & install. #679

Merged
merged 4 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions pkg/build/pipelines/pecl/install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Installs and enables a PHP PECL module.

needs:
packages:
- automake
- busybox
- cmake
- php-8.1-dev

inputs:
extension:
description: Name of the PECL extension to install.
required: true

pipeline:
- runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=${{inputs.extension}}" > ${{targets.destdir}}/etc/php/conf.d/${{inputs.extension}}.ini
19 changes: 19 additions & 0 deletions pkg/build/pipelines/pecl/phpize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: PHP phpize and configure a PHP PECL module. Requires php-dev version to be installed.

needs:
packages:
- autoconf
- busybox

inputs:
php-config:
description: php-config to use
default: "php-config"
prefix:
description: prefix to use for configure
default: "/usr"

pipeline:
- runs: |
phpize
./configure --prefix=${{inputs.prefix}} --with-php-config=${{inputs.php-config}}