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.85k stars 334 forks source link

setup-php with 8.4 (nightly) is slow #810

Closed brettmc closed 6 months ago

brettmc commented 6 months ago

Describe the bug Running an action with 8.4 takes ~18 minutes to install whereas the released version (eg 8.3) take about 30s eg https://github.com/open-telemetry/opentelemetry-php/actions/runs/7191304721/job/19585781470 It seems exceptionally slow, and I'd happily use a pre-built version from earlier (if it's building from source each time?)

Version

Runners

Operating systems ubuntu-latest

PHP versions 8.4

To Reproduce

    steps:
    - uses: actions/checkout@v3

    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: 8.4
        coverage: xdebug
        tools: php-cs-fixer
        extensions: "ast, grpc, protobuf"

Expected behavior To complete in a reasonable time

Screenshots/Logs Screenshot from 2024-01-12 16-30-58

Additional context

Are you willing to submit a PR? Yes

shivammathur commented 6 months ago

There are no builds for these extensions for PHP 8.4, so it is building them from the source on each run.

Please consider using shivammathur/cache-extensions action to cache them.