Skip to content

Always install additional extension libs when given #575

@ruudk

Description

@ruudk

I see that setup-php can automatically install additional libs.

But it appears that this is only picked up when building from source.

Right now, I'm trying to install https://pecl.php.net/package-info.php?package=memcached&version=3.2.0RC2 from PECL and that fails because it needs libmemcached-dev.

I provided this:

            -   name: Setup PHP
                uses: shivammathur/setup-php@verbose
                with:
                    php-version: '8.1'
                    coverage: none
                    extensions: memcached-3.2.0RC2
                env:
                    fail-fast: true
                    MEMCACHED_LIBS: zlib1g-dev libmemcached-dev

It would be great if the same trick works for PECL packages as well.

I solved it by running sudo apt-get install -y libmemcached-dev before this step.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions