Document how to specify multiple extensions

This commit is contained in:
Benedikt Franke 2020-12-10 16:14:00 +01:00 committed by GitHub
parent 5efdcae81a
commit eb7b2459a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,6 +150,16 @@ The action supports both `GitHub-hosted` runners and `self-hosted` runners on th
extensions: xdebug-beta extensions: xdebug-beta
``` ```
- Multiple extensions are expected as a comma separated list.
```yaml
- name: Setup PHP with multiple extensions
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: swoole, sqlite
```
- Shared extensions can be removed by prefixing them with a `:`. - Shared extensions can be removed by prefixing them with a `:`.
```yaml ```yaml