shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
https://setup-php.com
MIT License
2.89k stars 337 forks source link

Since `2.28.0` stopped to install extensions on `ubuntu-latest` OS #796

Closed Jeckerson closed 7 months ago

Jeckerson commented 9 months ago

Describe the bug Since 2.28.0 version, jobs stopped to install extensions on ubuntu-latest OS. Works when specify version of Ubuntu.

Version

Runners

Operating systems Ubuntu

PHP versions Any

To Reproduce

    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.1'
          extensions: phalcon, swoole
          tools: pecl
shivammathur commented 9 months ago

@Jeckerson

Installing php8.1-phalcon5 package from ppa:ondrej/php switches the PHP version to 8.3. I will add a fix for this in the next release.

shivammathur commented 9 months ago

Fixed in https://github.com/shivammathur/setup-php/commit/131ba03b0d2671acd4a45ef920361f3dc3742765.

shivammathur commented 7 months ago

Released 2.29.0 with the fix.