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.
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:
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-devbefore this step.