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
Always install additional extension libs when given #575
Comments
Added support in e9884d0 Test workflow: https://github.com/shivammathur/test-setup-php/actions/runs/1960085437/workflow |
@shivammathur Thank you so much! Any ETA for that release? |
@ruudk I was very busy last week. Will try to do it tomorrow. |
Released |
I just tested it and it works great: - 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
# ✓ memcached-3.2.0RC2 Installed and enabled with libraries libmemcached-dev zlib1g-dev but when I do the same for - name: Setup PHP
uses: shivammathur/setup-php@verbose
with:
php-version: '8.1'
coverage: none
extensions: rdkafka
env:
fail-fast: true
RDKAFKA_LIBS: librdkafka-dev
# ✗ rdkafka Could not install rdkafka on PHP 8.1.3 Could it be that the |
For |
Patched, it should work now. |
@shivammathur It works 👏 Thanks 💙 |
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-dev
before this step.The text was updated successfully, but these errors were encountered: