- Added support for Debian on self-hosted environments and containers.
- Debian 9 and above are supported in addition to existing Ubuntu support.
- Operating systems based on these versions of Debian are also supported on a best-effort basis.
container: debian:bullseye
steps:
- name: Install PHP on Debian
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
env:
runner: self-hosted
- Added
windows-2022
to the supported OS environments.
runs-on: windows-2022
steps:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- Added support for
phpunit-bridge
and updatedsymfony
examples to install it usingsetup-php
.
- name: Setup PHP with Phive
with:
php-version: '8.0'
tools: phpunit-bridge
- Added documentation to run multi-line PHP code in workflows. #482
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- name: Run PHP code
shell: php {0}
run: |
<?php
$welcome = "Hello, world";
echo $welcome;
- Added support for extensions
mongodb
andyaml
on macOS usingshivammathur/extensions
tap. - Added a specific
phive
version compatible with PHP 7.2. #481
- name: Setup PHP with Phive
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
tools: phive
- Added
--no-install-recommends
to apt install commands on Linux. - Added support for JavaScript actions on
shivammathur/node
images.spc
is no longer required for multi-arch workflows and normal GitHub Action syntax should work.
container: shivammathur/node:latest-${{ matrix.arch }}
strategy:
matrix:
arch: ["amd64", "i386"]
steps:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- PHP 8.1 on Linux in
shivammathur/php-builder
is now built nightly with the same configuration and patches as official Debian builds of PHP.
- name: Setup PHP 8.1
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- Added a new flag
NO_TOOLS_CACHE
. The tool will be fetched from the source instead of any cache that setup-php implements when this is set to true. - This can be useful for maintainers to make sure a new version of their tool is used instead of the old cached version.
- As of this release, only
composer
phars are cached.
- name: Setup PHP
uses: shivammathur/setup-php@v2
env:
NO_TOOLS_CACHE: true
with:
php-version: '8.0'
- Removed support for Ubuntu 16.04. Please upgrade to Ubuntu 20.04 or Ubuntu 18.04 environments. #452
- Removed support for Blackfire v1. Specifying
blackfire
in tools will now install the latest version of Blackfire CLI v2. #478
- name: Setup PHP with Blackfire
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: blackfire
-
Removed
software-properties-common
package from dependencies on self-hosted Linux. This package was used for adding third-party repositories(PPA). Removing this reduces self-hosted first run time from 2-3 minutes to 1-2 minutes. -
PPAs can now be added by
setup-php
without any dependencies and the deprecatedapt-key
. It follows the Debian specification for third-party repositories. -
Remove use of
/etc/lsb-release
file,/etc/os-release
is used now as it has better support. -
Fixed a bug where the status file was overwritten after PHP was set up on GitHub runners.
-
Fixed support for
php-cs-fixer
to parsereleases.atom
file and install correct latest version. #485
- name: Setup PHP with php-cs-fixer
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: php-cs-fixer
- Fixed cache support for extensions on Windows which need additional libraries.
- Fixed permissions in composer set up on self-hosted environments. #477
- Fixed starting Blackfire service on Linux. #483
- Fixed a warning about shallow clones for Homebrew taps on macOS.
- Fixed a warning about macOS developer mode while using
brew cat
. - In
tsconfig.json
setlib
toES2020
andtarget
toES2019
for supporting Node 12 in self-hosted runners. - Update Node.js dependencies.
Thanks! @jrfnl and @lolautruche for the contributions 🎉