Releases: shivammathur/setup-php
1.11.2
v1
maintenance release
- Fix replacing
v
prefix in tool versions. - Use
shivammathur/extensions
tap forrdkafka
onmacOS
. - Update
Ubuntu 16.04
warning ininstall.ts
. - Update
Node.js
dependencies.
2.11.0
-
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 orupdate: 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
inInstall-PSPackage
inwin32.ps1
. - Add parameters to
add_ppa
function inlinux.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
tolcov.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
tocommon.sh
. - Improve
switch_version
inlinux.sh
to accept parameters. - Cleanup
tsconfig.json
. - Set
moduleResolution
tonode
intsconfig.json
. - Update year in license.
- Update Node version to
15.x
in Node workflow. - Update
SECURITY.md
. - Update Node.js dependencies.
2.10.0
- 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
- 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'
- Add support for specifying ICU version for intl extension on PHP 8.0 (shivammathur/icu-intl#1).
- 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
- PHP 8.0 is now stable
PHP 8.0.0
onsetup-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
andcomposer-prefetcher
unlesscomposer: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 to2.9.8
onPHP 7.2
. #345 - Set
xdebug.mode=coverage
ini directive always #346 - Sync dependencies from
shivammathur/extensions
tap inadd_brew_extension
. - Fix
fail-fast
on Windows. - Fix deleting extensions when one extension is a substring of the other. For example
pdo_sqlsrv
andsqlsrv
. - Fix fetching extension version from
PECL
onmacOS
. - Fix fetching
grpc
latest tag. (grpc/grpc.io#79) - Prioritize
Bintray
overGitHub
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
v1
maintenance release
- Add fallback to
Install-Module
inInstall-PSPackage
inwin32.ps1
. - Add parameters to
add_ppa
function inlinux.sh
. - Cleanup
cleanup_lists
inlinux.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
tolcov.info
for coverage.clover.xml
has broken conditional coverage support. - Use packages from
shivammathur/php-ubuntu
for PHP setup and upgrades. - Use
shivammathur/extensions
forphalcon
andpsr
.
1.11.0
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
- Add support to setup a specific
Composer
version.
For example to setupComposer 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 forPHP 5.6
toPHP 7.4
.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: couchbase
- Set
blackfire-player
tov1.9.3
forPHP 5.5
toPHP 7.0
. - Set
composer
version tov1
whenprestissimo
orcomposer-prefetcher
is specified in tools. It is recommended to stop usingprestissimo
asComposer 2
is faster on its own. - Document using
setup-php
oni386
andamd64
containers usingspc
. 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 onWindows
. - Update
PHP
dependencies as per GitHub Action runner version onmacOS
. - Fix
grpc_php_plugin
setup. Now usesXcode 11.7
as compiling it withXcode 12
is flaky. - Fix extension setup on
PHP 8.0
andPHP 8.1
and for all PHP versions on self-hostedLinux
. - Fix
composer
setup when it is a dependency of a tool. - Revert back to
apt-fast
as after1.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 scalesetup-php
better and avoid bintray's 2TB/month download limit. - Refactor and dry
linux.sh
anddarwin.sh
. - Fix contribution docs.
Thanks @GrahamCampbell and @mlocati for the contributions 🎉
2.7.0
- 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
andimagick
forPHP 5.6
and newer onmacOS
usingshivammathur/homebrew-extensions
. - Fix setup for extensions
ast
,phalcon4
,pdo_oci
andoci8
after october update inppa:ondrej/php
. - Fix problem matchers setup when action is called more than once in the same workflow.
- Switch to
apt-get
tillapt-fast
is updated to1.9.10
on the runner. - Fetch
PhpManager
from release assets. - Remove patch for
RLIMIT_CORE
bug insudo
, fixed upstream. - Minor fixes for typos in scripts.
- Update
README
.
Thanks @mlocati for the contribution 🎉
1.10.1
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 inadd_brew_extension
. - Fix
Xdebug
setup. - Fix tool setup on
Windows
. - Fix
shellcheck
warning inadd_tool
. - Fix deleting extensions when one extension is a substring of the other.
- Fix fetching extension version from
PECL
onmacOS
. - Refactor
darwin.sh
script. - Change project description in
actions.yml
.
1.10.0
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 onWindows
. - Set
composer
version tov1
whenprestissimo
orcomposer-prefetcher
is specified in tools. It is recommended to stop usingprestissimo
asComposer 2
is faster on its own. - Update
PHP
dependencies as per GitHub Action runner version onmacOS
. - 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
.