Skip to content

Releases: shivammathur/setup-php

1.11.2

14 Jul 09:16
506357c
Compare
Choose a tag to compare

v1 maintenance release

  • Fix replacing v prefix in tool versions.
  • Use shivammathur/extensions tap for rdkafka on macOS.
  • Update Ubuntu 16.04 warning in install.ts.
  • Update Node.js dependencies.

2.11.0

27 Apr 05:58
fefbd7a
Compare
Choose a tag to compare
  • Improve cache in shivammathur/php-ubuntu for PHP 5.6 to PHP 8.0.
    Using cache should reduce setup-php runtime on Ubuntu when the PHP version is not installed on the runner or update: true is set from 1-2 minutes to less than 5 seconds.

  • Add support to compile and install extensions from source from any git repository, from a sub-directory in a repository, with required libraries and configuration. Refer to this guide for more details and examples. #418, Closes #419

  • Add support to set up composer packages using tools input. Closes #442

- name: Setup PHP with tools
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'
    tools: phpunit/phpunit
  • Add support to skip composer setup by specifying tools: none. Closes #446
- name: Setup PHP with no tools using composer
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'
    tools: none
  • Add support for different ICU versions with PHP 8.1 on Ubuntu.
- name: Setup PHP 8.1 with ICU 69.1
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
    extensions: intl-69.1
  • Improve logs for compiling extensions from source. Now this process is verbose and the logs are grouped.
  • Improve extension support.
    • Add support for pdo_firebird.
    • Improve support for geos to compile on PHP 8.0 and 8.1.
    • Fix cubrid setup on Ubuntu 16.04.
    • Fix gearman support on Ubuntu.
    • Use GitHub releases for all couchbase versions.
    • Use shivammathur/extensions tap for apcu, phalcon, psr, memcache and memcached on macOS.
    • Fix phalcon3 on Windows.
    • Revert to ppa:ondrej/ppa for phalcon3 on Ubuntu.
    • Revert pcov patch for PHP 8 on Windows as the DLL is now available on PECL.
  • Add PHP commit hash in logs on PHP 8.1 (nightly) on Ubuntu. #433
  • Fix versions in logs of tools installed using composer.
  • Fix linking of old libraries on macOS.
  • Fix enabling cached extensions which have other extensions as dependencies. #428
  • Fix pecl setup to avoid unnecessary callbacks.
  • Fix blackfire extension version to 1.50.0 for PHP 5.6 and below.
  • Fix composer setup on self-hosted set up. #435
  • PHP 5.6 to PHP 7.2 on macOS are now built with backported security patches in shivammathur/php tap.

Internal

  • Add fallback to Install-Module in Install-PSPackage in win32.ps1.
  • Add parameters to add_ppa function in linux.sh.
  • Do not lowercase source extension input.
  • Fix warning about ignored promise in install.ts.
  • Fix shellcheck warning in darwin.sh.
  • Refactor coverage setup.
  • Refactor regex in extension.ts.
  • Remove dotdeb support. PHP 5.4 and 5.5 are now built from source along with compatable extensions in shivammathur/php5-ubuntu.
  • Replace bintray with cdnjs as fallback to GitHub releases for fetching scripts.
  • Replace bintray in Windows script with GitHub Releases.
  • Replace bintray and use shivammathur/intl-icu GitHub releases.
  • Move patches from custom extension scripts to patches directory.
  • Switch from clover.xml to lcov.info for coverage. clover.xml has broken conditional coverage support.
  • Use add_extension_from_source for all custom supported extensions.
  • Move patches from custom extension scripts to patches directory.
  • Move add_pecl_extension to common.sh.
  • Improve switch_version in linux.sh to accept parameters.
  • Cleanup tsconfig.json.
  • Set moduleResolution to node in tsconfig.json.
  • Update year in license.
  • Update Node version to 15.x in Node workflow.
  • Update SECURITY.md.
  • Update Node.js dependencies.

2.10.0

23 Feb 10:03
6dba529
Compare
Choose a tag to compare
  • Add support to compile extensions from source. Docs (#399).
- name: Setup PHP with mongodb compiled from source
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'  
    extensions: mongodb-mongodb/mongo-php-driver@v1.9
  • Add support to setup Xdebug 2.x on PHP 7.2 to PHP 7.4. Docs.
name: Setup PHP with Xdebug 2.x
uses: shivammathur/setup-php@v2
with:
  php-version: '7.4'
  coverage: xdebug2
  • Add support for quoted CSV in ini-values to allow directives with commas (#392, #405).
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    ini-values: xdebug.mode="develop,coverage"
  • Add support to specify version in d.x notation. For example 5.x, 7.4 and 8.x (#395).
- name: Setup PHP 7.4
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.x'
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    extensions: intl-68.2
  • Add support for pdo_firebird for all configurations.
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    extensions: pdo_firebird
  • Add support for self-hosted runners on macOS ARM64 Docs.
  • Add support for blackfire on PHP 8.0.
- name: Setup PHP with blackfire
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    extensions: blackfire
    tools: blackfire
  • Add support for pecl_http for all PHP versions on Ubuntu and macOS and PHP 7.1 to PHP 8.0 on Windows. (#396)
- name: Setup PHP with pecl_http
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    extensions: pecl_http
  • Add support for aliases for symfony-cli, vapor-cli, and wp-cli. Docs
  • Add support for couchbase extension with PHP 5.3 to PHP 5.5 on Ubuntu and macOS.
  • Fail fast on failing to setup the requested PHP version (#368).
  • Fix Composer config syntax (#404).
  • Fix PHP 8 on macOS after update on images.
  • Fix PDO extensions setup on Ubuntu and macOS (#412).
  • Fix compiling extensions in self-hosted workflows (shivammathur/node-docker#5).
  • Fix tools setup on self-hosted runners.
  • Fix pcov on PHP 8.0 on Windows (#398).
  • Fix cache support for cubrid and pdo_cubrid.
  • Fix support for phalcon3 (#413).
  • Improve support for PHP extensions amqp, igbinary, imap, msgpack, propro, raphf, redis and zmq on macOS.
  • Improve support for phive. Now the correct version of phive for the PHP version should be setup (#366).
  • Improve fetching homebrew taps.
  • Improve PECL support. It is no longer required to specify pecl in tools input.
  • Improve regexes in extensions.ts.
  • Improve logs in Symfony examples (#377).
  • Set up Codeception using Composer.
  • Change Node.js version in the workflow.
  • Update Node.js dependencies.

Thanks @dingo-d, @alcaeus, @smoqadam and @glensc for the contributions 🎉

2.9.0

26 Nov 19:43
b2f833f
Compare
Choose a tag to compare
  • PHP 8.0 is now stable PHP 8.0.0 on setup-php for all supported OS. 🥳
  • Add new JIT configuration section to the README.

For example, to enable JIT on PHP 8.0.

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    ini-values: opcache.enable_cli=1

Refer to JIT Configuration for more details.

  • Skip prestissimo and composer-prefetcher unless composer:v1 is specified.

For example to setup prestissimo, use

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    tools: composer:v1, prestissimo
  • Set Xdebug version to 2.9.8 on PHP 7.2. #345
  • Set xdebug.mode=coverage ini directive always #346
  • Sync dependencies from shivammathur/extensions tap in add_brew_extension.
  • Fix fail-fast on Windows.
  • Fix deleting extensions when one extension is a substring of the other. For example pdo_sqlsrv and sqlsrv.
  • Fix fetching extension version from PECL on macOS.
  • Fix fetching grpc latest tag. (grpc/grpc.io#79)
  • Prioritize Bintray over GitHub releases for fetching scripts.
  • Refactor darwin.sh script.
  • Change project description in actions.yml.
  • Bump version to 2.9.0

Thanks @owenvoke for the contribution 🎉

1.11.1

27 Apr 05:49
32c1436
Compare
Choose a tag to compare

v1 maintenance release

  • Add fallback to Install-Module in Install-PSPackage in win32.ps1.
  • Add parameters to add_ppa function in linux.sh.
  • Cleanup cleanup_lists in linux.sh.
  • Fix gearman support on Ubuntu.
  • Fix warning about ignored promise in install.ts.
  • Fix linking of old libraries on macOS.
  • Make sure global composer.json directory exists.
  • PHP 5.6 to PHP 7.2 on macOS are now built with backported security patches in shivammathur/php tap.
  • Revert pcov patch for PHP 8 on Windows as the DLL is now available on PECL.
  • Update Node version to 15.x.
  • Update SECURITY.md.
  • Switch from clover.xml to lcov.info for coverage. clover.xml has broken conditional coverage support.
  • Use packages from shivammathur/php-ubuntu for PHP setup and upgrades.
  • Use shivammathur/extensions for phalcon and psr.

1.11.0

23 Feb 09:55
cb74689
Compare
Choose a tag to compare

v1 maintenance release

  • Add support to setup Xdebug 2.x on PHP 7.2 to PHP 7.4. Docs
name: Setup PHP with Xdebug 2.x
uses: shivammathur/setup-php@v1
with:
  php-version: '7.4'
  coverage: xdebug2
  • Add support for quoted CSV in ini-values input to allow directives with commas.
name: Setup PHP
uses: shivammathur/setup-php@v1
with:
  php-version: '7.4'
  ini-values: xdebug.mode="develop,coverage"
  • Add support to specify version in d.x notation. For example 5.x, 7.4 and 8.x.
name: Setup PHP 7.4
uses: shivammathur/setup-php@v1
with:
  php-version: '7.x'
  • Fail fast on failing to setup the requested PHP version.
  • Fix Composer config syntax.
  • Fix PHP 8 on macOS.
  • Improve support for PHP extensions amqp, igbinary, imap, msgpack, pecl_http, propro, raphf, redis and zmq on macOS.
  • Improve support for phive.
  • Improve fetching homebrew taps.
  • Improve regexes in extensions.ts.
  • Improve PECL support. It is no longer required to specify pecl in tools input.
  • Set up Codeception using Composer.
  • Sync Symfony examples from v2.
  • Sync HOMEBREW parameters from v2.
  • Change Node.js version in the workflow.
  • Update Node.js dependencies.

2.8.0

20 Nov 03:16
d14c0d0
Compare
Choose a tag to compare
  • Add support to setup a specific Composer version.
    For example to setup Composer 2.0.6.
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'
    tools: composer:2.0.6
  • Add support for couchbase extension for PHP 5.6 to PHP 7.4.
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'
    extensions: couchbase
  • Set blackfire-player to v1.9.3 for PHP 5.5 to PHP 7.0.
  • Set composer version to v1 when prestissimo or composer-prefetcher is specified in tools. It is recommended to stop using prestissimo as Composer 2 is faster on its own.
  • Document using setup-php on i386 and amd64 containers using spc. Docs. Closes #326.
  • Add workflow to document extensions that are enabled by default on wiki. (#327)
  • Fix tools setup when latest release does not have the tool in release assets. Will now fetch tool from the previous release till it is added to the latest release.
  • Improve regex for pre-release PECL extensions. (#325)
  • Install VcRedist from GitHub on Windows.
  • Update PHP dependencies as per GitHub Action runner version on macOS.
  • Fix grpc_php_plugin setup. Now uses Xcode 11.7 as compiling it with Xcode 12 is flaky.
  • Fix extension setup on PHP 8.0 and PHP 8.1 and for all PHP versions on self-hosted Linux.
  • Fix composer setup when it is a dependency of a tool.
  • Revert back to apt-fast as after 1.9.10 release it reports correct exit codes.
  • Revert back to using dashes in step-ids as issue parsing them is fixed upstream (nektos/act#287).
  • Use GitHub releases(s3) as primary source for builds and scripts with bintray only as fallback. This will scale setup-php better and avoid bintray's 2TB/month download limit.
  • Refactor and dry linux.sh and darwin.sh.
  • Fix contribution docs.

Thanks @GrahamCampbell and @mlocati for the contributions 🎉

2.7.0

31 Oct 14:16
c188004
Compare
Choose a tag to compare
  • Add support for PHP 8.1.0-dev. Specify php-version: 8.1 to setup. docs. Closes #303
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
  • Add support for macOS Big Sur macos-11.0. docs
runs-on: macos-11.0
  • Add support for fail-fast flag. It will mark the workflow as failed if an extension or tool fails to install. Closes #306
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7,4'
    tools: deployer
  env:
    fail-fast: true
  • Add support for igbinary and imagick for PHP 5.6 and newer on macOS using shivammathur/homebrew-extensions.
  • Fix setup for extensions ast, phalcon4, pdo_oci and oci8 after october update in ppa:ondrej/php.
  • Fix problem matchers setup when action is called more than once in the same workflow.
  • Switch to apt-get till apt-fast is updated to 1.9.10 on the runner.
  • Fetch PhpManager from release assets.
  • Remove patch for RLIMIT_CORE bug in sudo, fixed upstream.
  • Minor fixes for typos in scripts.
  • Update README.

Thanks @mlocati for the contribution 🎉

1.10.1

26 Nov 19:19
847ea65
Compare
Choose a tag to compare

v1 maintenance release

  • PHP 8 is stable PHP 8.0.0 now on setup-php.
  • Add JIT configuration section to the README. Refer to JIT Configuration.
  • Sync dependencies from shivammathur/extensions tap in add_brew_extension.
  • Fix Xdebug setup.
  • Fix tool setup on Windows.
  • Fix shellcheck warning in add_tool.
  • Fix deleting extensions when one extension is a substring of the other.
  • Fix fetching extension version from PECL on macOS.
  • Refactor darwin.sh script.
  • Change project description in actions.yml.

1.10.0

17 Nov 09:53
44cf056
Compare
Choose a tag to compare

v1 maintenance release

  • Allow installing a specific Composer version.
  • Fix tools setup when latest release does not have the tool in release assets. Will now fetch tool from the previous release till it is added to the latest release.
  • Improve regex for pre-release PECL extensions.
  • Install VcRedist from GitHub on Windows.
  • Set composer version to v1 when prestissimo or composer-prefetcher is specified in tools. It is recommended to stop using prestissimo as Composer 2 is faster on its own.
  • Update PHP dependencies as per GitHub Action runner version on macOS.
  • Fix extension setup on PHP 8.0.
  • Fix composer setup when it is a dependency of a tool.
  • Revert back to apt-fast as it now reports correct exit codes.
  • Revert back to using dashes in step-ids as issue parsing them is fixed upstream on nektos/act.