mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-09 22:34:08 +07:00
Allow extensions to be compiled from GitHub sources
This commit is contained in:

committed by
Shivam Mathur

parent
912f27c42c
commit
f42065d568
16
README.md
16
README.md
@ -117,7 +117,7 @@ On all supported OS/Platforms the following PHP versions are supported as per th
|
||||
|
||||
PHP extensions can be setup using the `extensions` input. It accepts a `string` in csv-format.
|
||||
|
||||
- On `Ubuntu`, extensions which are available as a package or available on `PECL` can be setup.
|
||||
- On `Ubuntu`, extensions which are available as a package, available on `PECL`, or hosted on GitHub can be setup.
|
||||
|
||||
```yaml
|
||||
- name: Setup PHP with PECL extension
|
||||
@ -129,7 +129,7 @@ PHP extensions can be setup using the `extensions` input. It accepts a `string`
|
||||
|
||||
- On `Windows`, extensions available on `PECL` which have the `DLL` binary can be setup.
|
||||
|
||||
- On `macOS`, extensions available on `PECL` can be installed.
|
||||
- On `macOS`, extensions available on `PECL` or hosted on GitHub can be installed.
|
||||
|
||||
- Extensions installed along with PHP if specified are enabled.
|
||||
|
||||
@ -192,6 +192,18 @@ PHP extensions can be setup using the `extensions` input. It accepts a `string`
|
||||
fail-fast: true
|
||||
```
|
||||
|
||||
- Extensions can be compiled from source if they are hosted on GitHub. In this case, the version specification contains the repository and branch/tag to clone:
|
||||
|
||||
```yaml
|
||||
- name: Setup PHP and remove shared extension
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '7.4'
|
||||
extensions: mongodb-mongodb/mongo-php-driver@v1.9
|
||||
```
|
||||
|
||||
The version can be a branch name or tag as supported by `git clone -b <name>`. The clone is performed recursively, i.e. submodules will be cloned as well.
|
||||
|
||||
## :wrench: Tools Support
|
||||
|
||||
These tools can be setup globally using the `tools` input. It accepts a string in csv-format.
|
||||
|
Reference in New Issue
Block a user