setup-php 2.35.4 → 2.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -88
- package/lib/extensions.js +8 -8
- package/lib/extensions.js.map +1 -1
- package/lib/install.js +1 -1
- package/lib/install.js.map +1 -1
- package/lib/tools.js +35 -10
- package/lib/tools.js.map +1 -1
- package/lib/utils.js +1 -1
- package/lib/utils.js.map +1 -1
- package/package.json +17 -16
- package/src/configs/brew_extensions +1 -0
- package/src/configs/darwin_libs +22 -0
- package/src/configs/ini/jit_aarch64.ini +3 -0
- package/src/configs/linux_libs +22 -0
- package/src/configs/php-versions.json +5 -4
- package/src/configs/tools.json +2 -1
- package/src/extensions.ts +23 -17
- package/src/install.ts +1 -1
- package/src/scripts/darwin.sh +37 -17
- package/src/scripts/extensions/add_extensions.sh +5 -3
- package/src/scripts/extensions/gearman.sh +3 -1
- package/src/scripts/extensions/ibm.ps1 +56 -0
- package/src/scripts/extensions/ibm.sh +106 -0
- package/src/scripts/extensions/intl.sh +5 -4
- package/src/scripts/extensions/oci.sh +2 -1
- package/src/scripts/extensions/patches/amqp.sh +5 -0
- package/src/scripts/extensions/patches/common.sh +31 -8
- package/src/scripts/extensions/patches/geos.sh +1 -5
- package/src/scripts/extensions/patches/pdo_oci.sh +3 -0
- package/src/scripts/extensions/patches/pdo_sqlsrv.sh +5 -0
- package/src/scripts/extensions/patches/phpize.sh +2 -1
- package/src/scripts/extensions/relay.sh +21 -34
- package/src/scripts/extensions/source.sh +23 -5
- package/src/scripts/linux.sh +1 -1
- package/src/scripts/tools/add_tools.sh +5 -1
- package/src/scripts/tools/ppa.sh +204 -30
- package/src/scripts/tools/symfony.ps1 +28 -14
- package/src/scripts/tools/symfony.sh +34 -31
- package/src/scripts/unix.sh +5 -3
- package/src/scripts/win32.ps1 +5 -2
- package/src/tools.ts +33 -10
- package/src/utils.ts +1 -1
- package/src/scripts/extensions/patches/gearman.sh +0 -5
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<a href="https://github.com/shivammathur/setup-php" title="GitHub action to setup PHP"><img alt="GitHub Actions status" src="https://github.com/shivammathur/setup-php/workflows/Main%20workflow/badge.svg"></a>
|
|
11
11
|
<a href="https://codecov.io/gh/shivammathur/setup-php" title="Code coverage"><img alt="Codecov Code Coverage" src="https://img.shields.io/codecov/c/github/shivammathur/setup-php?logo=codecov"></a>
|
|
12
12
|
<a href="https://github.com/shivammathur/setup-php/blob/main/LICENSE" title="license"><img alt="LICENSE" src="https://img.shields.io/badge/license-MIT-428f7e.svg?logo=open%20source%20initiative&logoColor=white&labelColor=555555"></a>
|
|
13
|
-
<a href="#tada-php-support" title="PHP Versions Supported"><img alt="PHP Versions Supported" src="https://img.shields.io/badge/php-5.3%20to%208.
|
|
13
|
+
<a href="#tada-php-support" title="PHP Versions Supported"><img alt="PHP Versions Supported" src="https://img.shields.io/badge/php-5.3%20to%208.6-777bb3.svg?logo=php&logoColor=white&labelColor=555555"></a>
|
|
14
14
|
</p>
|
|
15
15
|
<p align="center">
|
|
16
16
|
<a href="https://reddit.com/r/setup_php" title="setup-php reddit"><img alt="setup-php reddit" src="https://img.shields.io/badge/reddit-join-FF5700?logo=reddit&logoColor=FF5700&labelColor=555555"></a>
|
|
@@ -68,18 +68,19 @@ Both `GitHub-hosted` and `self-hosted` runners are supported by `setup-php` on t
|
|
|
68
68
|
|
|
69
69
|
### GitHub-Hosted Runners
|
|
70
70
|
|
|
71
|
-
| Virtual environment | Arch | YAML workflow label | Pre-installed PHP
|
|
72
|
-
|
|
73
|
-
| Ubuntu 24.04 | x86_64 | `ubuntu-latest` or `ubuntu-24.04` | `PHP 8.3`
|
|
74
|
-
| Ubuntu 22.04 | x86_64 | `ubuntu-22.04` | `PHP 8.1`
|
|
75
|
-
| Ubuntu 24.04 | aarch64 | `ubuntu-24.04-arm` | `PHP 8.3`
|
|
76
|
-
| Ubuntu 22.04 | aarch64 | `ubuntu-22.04-arm` | `PHP 8.1`
|
|
77
|
-
| Windows Server 2025 | x64 | `windows-2025` | `PHP 8.3`
|
|
78
|
-
| Windows Server 2022 | x64 | `windows-latest` or `windows-2022` | `PHP 8.3`
|
|
79
|
-
|
|
|
80
|
-
| macOS Sequoia 15.x | arm64 | `macos-15`
|
|
81
|
-
| macOS Sonoma 14.x | arm64 | `macos-
|
|
82
|
-
| macOS
|
|
71
|
+
| Virtual environment | Arch | YAML workflow label | Pre-installed PHP |
|
|
72
|
+
|---------------------|---------|------------------------------------|-------------------|
|
|
73
|
+
| Ubuntu 24.04 | x86_64 | `ubuntu-latest` or `ubuntu-24.04` | `PHP 8.3` |
|
|
74
|
+
| Ubuntu 22.04 | x86_64 | `ubuntu-22.04` | `PHP 8.1` |
|
|
75
|
+
| Ubuntu 24.04 | aarch64 | `ubuntu-24.04-arm` | `PHP 8.3` |
|
|
76
|
+
| Ubuntu 22.04 | aarch64 | `ubuntu-22.04-arm` | `PHP 8.1` |
|
|
77
|
+
| Windows Server 2025 | x64 | `windows-2025` | `PHP 8.3` |
|
|
78
|
+
| Windows Server 2022 | x64 | `windows-latest` or `windows-2022` | `PHP 8.3` |
|
|
79
|
+
| macOS Tahoe 26.x | arm64 | `macos-26` | - |
|
|
80
|
+
| macOS Sequoia 15.x | arm64 | `macos-latest` or `macos-15` | - |
|
|
81
|
+
| macOS Sonoma 14.x | arm64 | `macos-14` | - |
|
|
82
|
+
| macOS Sequoia 15.x | x86_64 | `macos-15-intel` | `PHP 8.3` |
|
|
83
|
+
| macOS Ventura 13.x | x86_64 | `macos-13` | `PHP 8.3` |
|
|
83
84
|
|
|
84
85
|
### Self-Hosted Runners
|
|
85
86
|
|
|
@@ -87,13 +88,14 @@ Both `GitHub-hosted` and `self-hosted` runners are supported by `setup-php` on t
|
|
|
87
88
|
|----------------------------------|----------------------------|
|
|
88
89
|
| Ubuntu 24.04 | `self-hosted` or `Linux` |
|
|
89
90
|
| Ubuntu 22.04 | `self-hosted` or `Linux` |
|
|
91
|
+
| Debian 13 | `self-hosted` or `Linux` |
|
|
90
92
|
| Debian 12 | `self-hosted` or `Linux` |
|
|
91
93
|
| Debian 11 | `self-hosted` or `Linux` |
|
|
92
94
|
| Windows 7 and newer | `self-hosted` or `Windows` |
|
|
93
95
|
| Windows Server 2012 R2 and newer | `self-hosted` or `Windows` |
|
|
96
|
+
| macOS Tahoe 26.x x86_64/arm64 | `self-hosted` or `macOS` |
|
|
94
97
|
| macOS Sequoia 15.x x86_64/arm64 | `self-hosted` or `macOS` |
|
|
95
98
|
| macOS Sonoma 14.x x86_64/arm64 | `self-hosted` or `macOS` |
|
|
96
|
-
| macOS Ventura 13.x x86_64/arm64 | `self-hosted` or `macOS` |
|
|
97
99
|
|
|
98
100
|
- Refer to the [self-hosted setup](#self-hosted-setup) to use the action on self-hosted runners.
|
|
99
101
|
- Operating systems based on the above Ubuntu and Debian versions are also supported on best effort basis.
|
|
@@ -101,11 +103,11 @@ Both `GitHub-hosted` and `self-hosted` runners are supported by `setup-php` on t
|
|
|
101
103
|
|
|
102
104
|
## :tada: PHP Support
|
|
103
105
|
|
|
104
|
-
On all supported OS/Platforms the following PHP versions can be set up as per the runner.
|
|
106
|
+
On all supported OS/Platforms, the following PHP versions can be set up as per the runner.
|
|
105
107
|
|
|
106
|
-
- PHP 5.3 to PHP 8.
|
|
107
|
-
- PHP 5.6 to PHP 8.
|
|
108
|
-
- PHP 5.6 to PHP 8.
|
|
108
|
+
- PHP 5.3 to PHP 8.6 on GitHub-hosted runners, except for macOS ARM64 runners (macos-14).
|
|
109
|
+
- PHP 5.6 to PHP 8.6 on GitHub-hosted macOS ARM64 runners (macos-14).
|
|
110
|
+
- PHP 5.6 to PHP 8.6 on self-hosted runners.
|
|
109
111
|
|
|
110
112
|
| PHP Version | Stability | Release Support | Runner Support |
|
|
111
113
|
|-------------|-----------|-----------------------|--------------------------------|
|
|
@@ -123,11 +125,12 @@ On all supported OS/Platforms the following PHP versions can be set up as per th
|
|
|
123
125
|
| `8.2` | `Stable` | `Security fixes only` | `GitHub-hosted`, `self-hosted` |
|
|
124
126
|
| `8.3` | `Stable` | `Active` | `GitHub-hosted`, `self-hosted` |
|
|
125
127
|
| `8.4` | `Stable` | `Active` | `GitHub-hosted`, `self-hosted` |
|
|
126
|
-
| `8.5` | `
|
|
128
|
+
| `8.5` | `Stable` | `Active` | `GitHub-hosted`, `self-hosted` |
|
|
129
|
+
| `8.6` | `Nightly` | `In development` | `GitHub-hosted`, `self-hosted` |
|
|
127
130
|
|
|
128
131
|
|
|
129
132
|
> [!Note]
|
|
130
|
-
> - Specifying `8.
|
|
133
|
+
> - Specifying `8.6` in `php-version` input installs a nightly build of `PHP 8.6.0-dev` from the master branch of PHP. See [nightly build setup](#nightly-build-setup) for more information.
|
|
131
134
|
> - To use JIT on `PHP 8.0` and above, refer to the [JIT configuration](#jit-configuration) section.
|
|
132
135
|
|
|
133
136
|
## :heavy_plus_sign: PHP Extension Support
|
|
@@ -140,8 +143,8 @@ PHP extensions can be set up using the `extensions` input. It accepts a `string`
|
|
|
140
143
|
- name: Setup PHP with PECL extension
|
|
141
144
|
uses: shivammathur/setup-php@v2
|
|
142
145
|
with:
|
|
143
|
-
php-version: '8.
|
|
144
|
-
extensions: imagick,
|
|
146
|
+
php-version: '8.5'
|
|
147
|
+
extensions: imagick, redis
|
|
145
148
|
```
|
|
146
149
|
|
|
147
150
|
- On `Windows`, extensions available on `PECL` which have the `DLL` binary can be set up.
|
|
@@ -168,7 +171,7 @@ PHP extensions can be set up using the `extensions` input. It accepts a `string`
|
|
|
168
171
|
- name: Setup PHP with pre-release PECL extension
|
|
169
172
|
uses: shivammathur/setup-php@v2
|
|
170
173
|
with:
|
|
171
|
-
php-version: '8.
|
|
174
|
+
php-version: '8.5'
|
|
172
175
|
extensions: xdebug-beta
|
|
173
176
|
```
|
|
174
177
|
|
|
@@ -180,30 +183,30 @@ PHP extensions can be set up using the `extensions` input. It accepts a `string`
|
|
|
180
183
|
- name: Setup PHP and disable opcache
|
|
181
184
|
uses: shivammathur/setup-php@v2
|
|
182
185
|
with:
|
|
183
|
-
php-version: '8.
|
|
184
|
-
extensions: :
|
|
186
|
+
php-version: '8.5'
|
|
187
|
+
extensions: :mbstring
|
|
185
188
|
```
|
|
186
189
|
|
|
187
190
|
- All shared extensions can be disabled by specifying `none`. When `none` is specified along with other extensions, it is hoisted to the start of the input. So, all the shared extensions will be disabled first, then rest of the extensions in the input will be processed.
|
|
188
191
|
|
|
189
|
-
This disables all core and third-party shared extensions and thus, can break some tools
|
|
192
|
+
This disables all core and third-party shared extensions and thus, can break some tools that need them. Required extensions are enabled again when the tools are set up on a best-effort basis. So it is recommended to add the extensions required for your tools after `none` in the `extensions` input to avoid any issues.
|
|
190
193
|
|
|
191
194
|
```yaml
|
|
192
195
|
- name: Setup PHP without any shared extensions except mbstring
|
|
193
196
|
uses: shivammathur/setup-php@v2
|
|
194
197
|
with:
|
|
195
|
-
php-version: '8.
|
|
198
|
+
php-version: '8.5'
|
|
196
199
|
extensions: none, mbstring
|
|
197
200
|
```
|
|
198
201
|
|
|
199
|
-
- Extension `intl` can be set up with specific `ICU` version for `PHP 5.6` and above in `Ubuntu` workflows by suffixing `intl` with the `ICU` version. `ICU 50.2` and newer versions are supported. Refer to [`ICU builds`](https://github.com/shivammathur/icu-intl#icu4c-builds) for the specific versions supported.
|
|
202
|
+
- Extension `intl` can be set up with specific `ICU` version for `PHP 5.6` and above in `Ubuntu` workflows by suffixing `intl` with the `ICU` version. `ICU 50.2` and newer versions are supported for PHP 8.4 and lower, `ICU 57.2` and newer versions are supported for PHP 8.5 and above. Refer to [`ICU builds`](https://github.com/shivammathur/icu-intl#icu4c-builds) for the specific versions supported.
|
|
200
203
|
|
|
201
204
|
```yaml
|
|
202
205
|
- name: Setup PHP with intl
|
|
203
206
|
uses: shivammathur/setup-php@v2
|
|
204
207
|
with:
|
|
205
|
-
php-version: '8.
|
|
206
|
-
extensions: intl-
|
|
208
|
+
php-version: '8.5'
|
|
209
|
+
extensions: intl-77.1
|
|
207
210
|
```
|
|
208
211
|
|
|
209
212
|
- Extensions loaded by default after `setup-php` runs can be found on the [wiki](https://github.com/shivammathur/setup-php/wiki).
|
|
@@ -211,7 +214,7 @@ This disables all core and third-party shared extensions and thus, can break som
|
|
|
211
214
|
- These extensions have custom support:
|
|
212
215
|
- `cubrid` and `pdo_cubrid` on `Ubuntu`.
|
|
213
216
|
- `event`, `gearman`, `geos` and `relay` on `Ubuntu` and `macOS`.
|
|
214
|
-
- `blackfire`, `couchbase`, `ioncube`, `oci8`, `pdo_firebird`, `pdo_oci`, `pecl_http`, `phalcon3`, `phalcon4`, `phalcon5`, and `zephir_parser` on all supported OS.
|
|
217
|
+
- `blackfire`, `couchbase`, `ibm_db2`, `ioncube`, `oci8`, `pdo_firebird`, `pdo_ibm`, `pdo_oci`, `pecl_http`, `phalcon3`, `phalcon4`, `phalcon5`, and `zephir_parser` on all supported OS.
|
|
215
218
|
|
|
216
219
|
- By default, extensions which cannot be added or disabled gracefully leave an error message in the logs, the execution is not interrupted. To change this behaviour you can set `fail-fast` flag to `true`.
|
|
217
220
|
|
|
@@ -219,7 +222,7 @@ This disables all core and third-party shared extensions and thus, can break som
|
|
|
219
222
|
- name: Setup PHP with fail-fast
|
|
220
223
|
uses: shivammathur/setup-php@v2
|
|
221
224
|
with:
|
|
222
|
-
php-version: '8.
|
|
225
|
+
php-version: '8.5'
|
|
223
226
|
extensions: oci8
|
|
224
227
|
env:
|
|
225
228
|
fail-fast: true
|
|
@@ -235,7 +238,7 @@ These tools can be set up globally using the `tools` input. It accepts a string
|
|
|
235
238
|
- name: Setup PHP with tools
|
|
236
239
|
uses: shivammathur/setup-php@v2
|
|
237
240
|
with:
|
|
238
|
-
php-version: '8.
|
|
241
|
+
php-version: '8.5'
|
|
239
242
|
tools: php-cs-fixer, phpunit
|
|
240
243
|
```
|
|
241
244
|
|
|
@@ -245,7 +248,7 @@ These tools can be set up globally using the `tools` input. It accepts a string
|
|
|
245
248
|
- name: Setup PHP with tools
|
|
246
249
|
uses: shivammathur/setup-php@v2
|
|
247
250
|
with:
|
|
248
|
-
php-version: '8.
|
|
251
|
+
php-version: '8.5'
|
|
249
252
|
tools: vimeo/psalm
|
|
250
253
|
```
|
|
251
254
|
|
|
@@ -264,7 +267,7 @@ These tools can be set up globally using the `tools` input. It accepts a string
|
|
|
264
267
|
- name: Setup PHP with composer v2
|
|
265
268
|
uses: shivammathur/setup-php@v2
|
|
266
269
|
with:
|
|
267
|
-
php-version: '8.
|
|
270
|
+
php-version: '8.5'
|
|
268
271
|
tools: composer:v1
|
|
269
272
|
```
|
|
270
273
|
|
|
@@ -274,7 +277,7 @@ These tools can be set up globally using the `tools` input. It accepts a string
|
|
|
274
277
|
- name: Setup PHP without composer
|
|
275
278
|
uses: shivammathur/setup-php@v2
|
|
276
279
|
with:
|
|
277
|
-
php-version: '8.
|
|
280
|
+
php-version: '8.5'
|
|
278
281
|
tools: none
|
|
279
282
|
```
|
|
280
283
|
|
|
@@ -290,7 +293,7 @@ These tools can be set up globally using the `tools` input. It accepts a string
|
|
|
290
293
|
- name: Setup PHP with fail-fast
|
|
291
294
|
uses: shivammathur/setup-php@v2
|
|
292
295
|
with:
|
|
293
|
-
php-version: '8.
|
|
296
|
+
php-version: '8.5'
|
|
294
297
|
tools: deployer
|
|
295
298
|
env:
|
|
296
299
|
fail-fast: true
|
|
@@ -302,7 +305,7 @@ These tools can be set up globally using the `tools` input. It accepts a string
|
|
|
302
305
|
- name: Setup PHP with fail-fast
|
|
303
306
|
uses: shivammathur/setup-php@v2
|
|
304
307
|
with:
|
|
305
|
-
php-version: '8.
|
|
308
|
+
php-version: '8.5'
|
|
306
309
|
env:
|
|
307
310
|
COMPOSER_ALLOW_PLUGINS: composer/installers, composer/satis
|
|
308
311
|
```
|
|
@@ -318,7 +321,7 @@ These tools can be set up globally using the `tools` input. It accepts a string
|
|
|
318
321
|
- name: Setup PHP with composer and custom process timeout
|
|
319
322
|
uses: shivammathur/setup-php@v2
|
|
320
323
|
with:
|
|
321
|
-
php-version: '8.
|
|
324
|
+
php-version: '8.5'
|
|
322
325
|
env:
|
|
323
326
|
COMPOSER_PROCESS_TIMEOUT: 300
|
|
324
327
|
```
|
|
@@ -334,7 +337,7 @@ Runs on all [PHP versions supported](#tada-php-support "List of PHP versions sup
|
|
|
334
337
|
- name: Setup PHP with Xdebug
|
|
335
338
|
uses: shivammathur/setup-php@v2
|
|
336
339
|
with:
|
|
337
|
-
php-version: '8.
|
|
340
|
+
php-version: '8.5'
|
|
338
341
|
coverage: xdebug
|
|
339
342
|
```
|
|
340
343
|
|
|
@@ -363,12 +366,12 @@ Runs on PHP 7.1 and newer PHP versions.
|
|
|
363
366
|
- name: Setup PHP with PCOV
|
|
364
367
|
uses: shivammathur/setup-php@v2
|
|
365
368
|
with:
|
|
366
|
-
php-version: '8.
|
|
369
|
+
php-version: '8.5'
|
|
367
370
|
ini-values: pcov.directory=api #optional, see above for usage.
|
|
368
371
|
coverage: pcov
|
|
369
372
|
```
|
|
370
373
|
|
|
371
|
-
- PHPUnit 8.x and above
|
|
374
|
+
- PHPUnit 8.x and above support PCOV out of the box.
|
|
372
375
|
- If you are using PHPUnit 5.x, 6.x or 7.x, you need to set up `pcov/clobber` before executing your tests.
|
|
373
376
|
|
|
374
377
|
```yaml
|
|
@@ -393,7 +396,7 @@ Disable coverage for these reasons:
|
|
|
393
396
|
- name: Setup PHP with no coverage driver
|
|
394
397
|
uses: shivammathur/setup-php@v2
|
|
395
398
|
with:
|
|
396
|
-
php-version: '8.
|
|
399
|
+
php-version: '8.5'
|
|
397
400
|
coverage: none
|
|
398
401
|
```
|
|
399
402
|
|
|
@@ -406,7 +409,7 @@ Disable coverage for these reasons:
|
|
|
406
409
|
#### `php-version` (optional)
|
|
407
410
|
|
|
408
411
|
- Specify the PHP version you want to set up.
|
|
409
|
-
- Accepts a `string`. For example `'8.
|
|
412
|
+
- Accepts a `string`. For example `'8.5'`.
|
|
410
413
|
- Accepts `lowest` to set up the lowest supported PHP version.
|
|
411
414
|
- Accepts `highest` or `latest` to set up the latest stable PHP version.
|
|
412
415
|
- Accepts `nightly` to set up a nightly build from the master branch of PHP.
|
|
@@ -480,7 +483,7 @@ On GitHub Actions you can assign the `setup-php` step an `id`, you can use the s
|
|
|
480
483
|
id: setup-php
|
|
481
484
|
uses: shivammathur/setup-php@v2
|
|
482
485
|
with:
|
|
483
|
-
php-version: '8.
|
|
486
|
+
php-version: '8.5'
|
|
484
487
|
|
|
485
488
|
- name: Print PHP version
|
|
486
489
|
run: echo ${{ steps.setup-php.outputs.php-version }}
|
|
@@ -522,7 +525,7 @@ steps:
|
|
|
522
525
|
- name: Setup PHP
|
|
523
526
|
uses: shivammathur/setup-php@v2
|
|
524
527
|
with:
|
|
525
|
-
php-version: '8.
|
|
528
|
+
php-version: '8.5'
|
|
526
529
|
extensions: mbstring, intl
|
|
527
530
|
ini-values: post_max_size=256M, max_execution_time=180
|
|
528
531
|
coverage: xdebug
|
|
@@ -540,7 +543,7 @@ jobs:
|
|
|
540
543
|
strategy:
|
|
541
544
|
matrix:
|
|
542
545
|
operating-system: ['ubuntu-latest', 'windows-latest', 'macos-latest']
|
|
543
|
-
php-versions: ['8.2', '8.3', '8.4']
|
|
546
|
+
php-versions: ['8.2', '8.3', '8.4', '8.5']
|
|
544
547
|
phpunit-versions: ['latest']
|
|
545
548
|
include:
|
|
546
549
|
- operating-system: 'ubuntu-latest'
|
|
@@ -559,17 +562,17 @@ jobs:
|
|
|
559
562
|
|
|
560
563
|
### Nightly Build Setup
|
|
561
564
|
|
|
562
|
-
> Set up a nightly build of `PHP 8.
|
|
565
|
+
> Set up a nightly build of `PHP 8.6`.
|
|
563
566
|
|
|
564
567
|
- These PHP versions are currently in active development and might contain bugs and breaking changes.
|
|
565
|
-
- Some user space extensions might not support
|
|
568
|
+
- Some user space extensions might not support these versions currently.
|
|
566
569
|
|
|
567
570
|
```yaml
|
|
568
571
|
steps:
|
|
569
572
|
- name: Setup nightly PHP
|
|
570
573
|
uses: shivammathur/setup-php@v2
|
|
571
574
|
with:
|
|
572
|
-
php-version: '8.
|
|
575
|
+
php-version: '8.6'
|
|
573
576
|
extensions: mbstring
|
|
574
577
|
ini-values: post_max_size=256M, max_execution_time=180
|
|
575
578
|
coverage: xdebug
|
|
@@ -593,7 +596,7 @@ steps:
|
|
|
593
596
|
- name: Setup PHP with debugging symbols
|
|
594
597
|
uses: shivammathur/setup-php@v2
|
|
595
598
|
with:
|
|
596
|
-
php-version: '8.
|
|
599
|
+
php-version: '8.5'
|
|
597
600
|
env:
|
|
598
601
|
debug: true # specify true or false
|
|
599
602
|
```
|
|
@@ -613,7 +616,7 @@ jobs:
|
|
|
613
616
|
- name: Setup PHP
|
|
614
617
|
uses: shivammathur/setup-php@v2
|
|
615
618
|
with:
|
|
616
|
-
php-version: '8.
|
|
619
|
+
php-version: '8.5'
|
|
617
620
|
env:
|
|
618
621
|
phpts: ts # specify ts or nts
|
|
619
622
|
```
|
|
@@ -630,7 +633,7 @@ jobs:
|
|
|
630
633
|
- name: Setup PHP with latest versions
|
|
631
634
|
uses: shivammathur/setup-php@v2
|
|
632
635
|
with:
|
|
633
|
-
php-version: '8.
|
|
636
|
+
php-version: '8.5'
|
|
634
637
|
env:
|
|
635
638
|
update: true # specify true or false
|
|
636
639
|
```
|
|
@@ -645,30 +648,35 @@ To debug any issues, you can use the `verbose` tag instead of `v2`.
|
|
|
645
648
|
- name: Setup PHP with logs
|
|
646
649
|
uses: shivammathur/setup-php@verbose
|
|
647
650
|
with:
|
|
648
|
-
php-version: '8.
|
|
651
|
+
php-version: '8.5'
|
|
649
652
|
```
|
|
650
653
|
|
|
651
654
|
### Multi-Arch Setup
|
|
652
655
|
|
|
653
656
|
> Set up PHP on multiple architecture on Ubuntu GitHub Runners.
|
|
654
657
|
|
|
655
|
-
- `PHP 5.6` to `PHP 8.
|
|
656
|
-
- For this, you can use `shivammathur/node` images as containers. These have compatible `Nodejs` installed for `setup-php`.
|
|
657
|
-
- Currently, for `ARM` based setup, you will need [self-hosted runners](#self-hosted-setup).
|
|
658
|
+
- `PHP 5.6` to `PHP 8.5` are supported by `setup-php` on multiple architecture on `Ubuntu` and `Debian`.
|
|
659
|
+
- For this, you can use `shivammathur/node` images as containers. These have compatible `Nodejs` and `PHP` installed for `setup-php`.
|
|
658
660
|
|
|
659
661
|
```yaml
|
|
660
662
|
jobs:
|
|
661
663
|
run:
|
|
662
|
-
runs-on:
|
|
663
|
-
container: shivammathur/node:
|
|
664
|
+
runs-on: ${{ matrix.os }}
|
|
665
|
+
container: shivammathur/node:php-${{ matrix.php-versions }}-24.04-${{ matrix.arch }}
|
|
664
666
|
strategy:
|
|
665
667
|
matrix:
|
|
666
|
-
arch: ["amd64", "
|
|
668
|
+
arch: ["amd64", "arm64v8"]
|
|
669
|
+
php-versions: [8.4, 8.5]
|
|
670
|
+
include:
|
|
671
|
+
- arch: "amd64"
|
|
672
|
+
os: "ubuntu-24.04"
|
|
673
|
+
- arch: "arm64v8"
|
|
674
|
+
os: "ubuntu-24.04-arm"
|
|
667
675
|
steps:
|
|
668
676
|
- name: Install PHP
|
|
669
677
|
uses: shivammathur/setup-php@v2
|
|
670
678
|
with:
|
|
671
|
-
php-version:
|
|
679
|
+
php-version: ${{ matrix.php-versions }}
|
|
672
680
|
```
|
|
673
681
|
|
|
674
682
|
### Self Hosted Setup
|
|
@@ -690,7 +698,7 @@ jobs:
|
|
|
690
698
|
runs-on: self-hosted
|
|
691
699
|
strategy:
|
|
692
700
|
matrix:
|
|
693
|
-
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
|
|
701
|
+
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
|
|
694
702
|
name: PHP ${{ matrix.php-versions }}
|
|
695
703
|
steps:
|
|
696
704
|
- name: Setup PHP
|
|
@@ -703,7 +711,7 @@ jobs:
|
|
|
703
711
|
|
|
704
712
|
> [!NOTE]
|
|
705
713
|
> - Do not set up multiple self-hosted runners on a single server instance as parallel workflow will conflict with each other.
|
|
706
|
-
> - Do not set up self-hosted runners on the side
|
|
714
|
+
> - Do not set up self-hosted runners on the side of your development environment or your production server.
|
|
707
715
|
> - Avoid using the same labels for your `self-hosted` runners which are used by `GitHub-hosted` runners.
|
|
708
716
|
|
|
709
717
|
### Local Testing Setup
|
|
@@ -718,22 +726,22 @@ jobs:
|
|
|
718
726
|
- name: Setup PHP
|
|
719
727
|
uses: shivammathur/setup-php@v2
|
|
720
728
|
with:
|
|
721
|
-
php-version: '8.
|
|
729
|
+
php-version: '8.5'
|
|
722
730
|
```
|
|
723
731
|
|
|
724
732
|
Run the workflow locally with `act` using [`shivammathur/node`](https://github.com/shivammathur/node-docker "Docker image to run setup-php") docker images.
|
|
725
733
|
|
|
726
|
-
Choose the image tag which matches the `runs-on` property in your workflow. For example, if you are using `ubuntu-22.04` in your workflow, run `act -P ubuntu-22.04=shivammathur/node:
|
|
734
|
+
Choose the image tag which matches the `runs-on` property in your workflow. For example, if you are using `ubuntu-22.04` in your workflow, run `act -P ubuntu-22.04=shivammathur/node:22.04`.
|
|
727
735
|
|
|
728
736
|
```bash
|
|
729
737
|
# For runs-on: ubuntu-latest
|
|
730
738
|
act -P ubuntu-latest=shivammathur/node:latest
|
|
731
739
|
|
|
732
740
|
# For runs-on: ubuntu-24.04
|
|
733
|
-
act -P ubuntu-24.04=shivammathur/node:
|
|
741
|
+
act -P ubuntu-24.04=shivammathur/node:24.04
|
|
734
742
|
|
|
735
743
|
# For runs-on: ubuntu-22.04
|
|
736
|
-
act -P ubuntu-22.04=shivammathur/node:
|
|
744
|
+
act -P ubuntu-22.04=shivammathur/node:22.04
|
|
737
745
|
```
|
|
738
746
|
|
|
739
747
|
### JIT Configuration
|
|
@@ -742,7 +750,7 @@ act -P ubuntu-22.04=shivammathur/node:2204
|
|
|
742
750
|
|
|
743
751
|
- To enable JIT, enable `opcache` in cli mode by setting `opcache.enable_cli=1`.
|
|
744
752
|
- JIT conflicts with `Xdebug`, `PCOV`, and other extensions which override `zend_execute_ex` function, so set `coverage: none` and disable any such extension if added.
|
|
745
|
-
- By default, `opcache.jit=1235` and `opcache.jit_buffer_size=256M` are set which can be changed using `ini-values` input.
|
|
753
|
+
- By default, `opcache.jit=1235` and `opcache.jit_buffer_size=256M` (`opcache.jit_buffer_size=128M` on ARM-based environments) are set which can be changed using `ini-values` input.
|
|
746
754
|
- For detailed information about JIT related directives refer to the [`official PHP documentation`](https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.jit "opcache.jit documentation").
|
|
747
755
|
|
|
748
756
|
For example to enable JIT in `tracing` mode with buffer size of `64 MB`.
|
|
@@ -751,7 +759,7 @@ For example to enable JIT in `tracing` mode with buffer size of `64 MB`.
|
|
|
751
759
|
- name: Setup PHP with JIT in tracing mode
|
|
752
760
|
uses: shivammathur/setup-php@v2
|
|
753
761
|
with:
|
|
754
|
-
php-version: '8.
|
|
762
|
+
php-version: '8.5'
|
|
755
763
|
coverage: none
|
|
756
764
|
ini-values: opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=64M
|
|
757
765
|
```
|
|
@@ -802,7 +810,7 @@ By default, setup-php uses the `GITHUB_TOKEN` secret that is generated for each
|
|
|
802
810
|
- name: Setup PHP
|
|
803
811
|
uses: shivammathur/setup-php@v2
|
|
804
812
|
with:
|
|
805
|
-
php-version: '8.
|
|
813
|
+
php-version: '8.5'
|
|
806
814
|
github-token: ${{ secrets.YOUR_PAT_TOKEN }}
|
|
807
815
|
```
|
|
808
816
|
|
|
@@ -818,7 +826,7 @@ If you use Private Packagist for your private composer dependencies, you can set
|
|
|
818
826
|
- name: Setup PHP
|
|
819
827
|
uses: shivammathur/setup-php@v2
|
|
820
828
|
with:
|
|
821
|
-
php-version: '8.
|
|
829
|
+
php-version: '8.5'
|
|
822
830
|
env:
|
|
823
831
|
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
|
|
824
832
|
```
|
|
@@ -832,7 +840,7 @@ Please refer to the authentication section in [`composer documentation`](https:/
|
|
|
832
840
|
- name: Setup PHP
|
|
833
841
|
uses: shivammathur/setup-php@v2
|
|
834
842
|
with:
|
|
835
|
-
php-version: '8.
|
|
843
|
+
php-version: '8.5'
|
|
836
844
|
env:
|
|
837
845
|
COMPOSER_AUTH_JSON: |
|
|
838
846
|
{
|
|
@@ -855,7 +863,7 @@ Put the code in the run property of a step and specify the shell as `php {0}`.
|
|
|
855
863
|
- name: Setup PHP
|
|
856
864
|
uses: shivammathur/setup-php@v2
|
|
857
865
|
with:
|
|
858
|
-
php-version: '8.
|
|
866
|
+
php-version: '8.5'
|
|
859
867
|
|
|
860
868
|
- name: Run PHP code
|
|
861
869
|
shell: php {0}
|
|
@@ -895,7 +903,7 @@ PHPStan supports error reporting in GitHub Actions, so it does not require probl
|
|
|
895
903
|
- name: Setup PHP
|
|
896
904
|
uses: shivammathur/setup-php@v2
|
|
897
905
|
with:
|
|
898
|
-
php-version: '8.
|
|
906
|
+
php-version: '8.5'
|
|
899
907
|
tools: phpstan
|
|
900
908
|
|
|
901
909
|
- name: Run PHPStan
|
|
@@ -910,7 +918,7 @@ Psalm supports error reporting in GitHub Actions with an output format `github`.
|
|
|
910
918
|
- name: Setup PHP
|
|
911
919
|
uses: shivammathur/setup-php@v2
|
|
912
920
|
with:
|
|
913
|
-
php-version: '8.
|
|
921
|
+
php-version: '8.5'
|
|
914
922
|
tools: psalm
|
|
915
923
|
|
|
916
924
|
- name: Run Psalm
|
|
@@ -928,7 +936,7 @@ For examples refer to the [cs2pr documentation](https://github.com/staabm/annota
|
|
|
928
936
|
- name: Setup PHP
|
|
929
937
|
uses: shivammathur/setup-php@v2
|
|
930
938
|
with:
|
|
931
|
-
php-version: '8.
|
|
939
|
+
php-version: '8.5'
|
|
932
940
|
tools: cs2pr, phpcs
|
|
933
941
|
|
|
934
942
|
- name: Run phpcs
|
|
@@ -998,18 +1006,14 @@ Examples of using `setup-php` with various PHP frameworks and packages.
|
|
|
998
1006
|
|
|
999
1007
|
## :sparkling_heart: Support This Project
|
|
1000
1008
|
|
|
1001
|
-
- Please star the project and share it. If you blog, please share your experience of using `setup-php`.
|
|
1002
|
-
- Please [reach out](mailto:contact@setup-php.com) if you have any questions about sponsoring setup-php.
|
|
1003
|
-
|
|
1004
|
-
Many users and organisations support setup-php via [GitHub Sponsors](https://github.com/sponsors/shivammathur).
|
|
1005
|
-
|
|
1006
|
-
<a href="https://github.com/sponsors/shivammathur"><img src="https://setup-php.com/sponsors.svg?" alt="Sponsor shivammathur"></a>
|
|
1007
|
-
|
|
1008
1009
|
These companies generously provide setup-php their products and services to aid in the development of this project.
|
|
1009
1010
|
|
|
1010
1011
|
<p>
|
|
1011
|
-
<a target="_blank" href="https://www.jetbrains.com/?from=setup-php">
|
|
1012
|
-
<img src="https://setup-php.com/sponsors/jetbrains.svg" alt="JetBrains" width="140" height="
|
|
1012
|
+
<a target="_blank" href="https://www.jetbrains.com/?from=setup-php#gh-light-mode-only">
|
|
1013
|
+
<img src="https://setup-php.com/sponsors/jetbrains.svg" alt="JetBrains" width="140" height="100">
|
|
1014
|
+
</a>
|
|
1015
|
+
<a target="_blank" href="https://www.jetbrains.com/?from=setup-php#gh-dark-mode-only">
|
|
1016
|
+
<img src="https://setup-php.com/sponsors/jetbrains-white.svg" alt="JetBrains" width="140" height="100">
|
|
1013
1017
|
</a>
|
|
1014
1018
|
|
|
1015
1019
|
<a target="_blank" href="https://www.cloudflare.com/lp/project-alexandria/#gh-light-mode-only">
|
|
@@ -1026,11 +1030,22 @@ These companies generously provide setup-php their products and services to aid
|
|
|
1026
1030
|
<img src="https://setup-php.com/sponsors/macstadium-white.png" alt="Mac Stadium" width="200" height="80">
|
|
1027
1031
|
</a>
|
|
1028
1032
|
|
|
1029
|
-
<a target="_blank" href="#">
|
|
1030
|
-
<img src="https://setup-php.com/sponsors/
|
|
1033
|
+
<a target="_blank" href="https://m.do.co/c/f1a8ee1277b0#gh-light-mode-only">
|
|
1034
|
+
<img src="https://setup-php.com/sponsors/digitalocean.svg" alt="Digitalocean" width="100" height="100">
|
|
1035
|
+
</a>
|
|
1036
|
+
<a target="_blank" href="https://m.do.co/c/f1a8ee1277b0#gh-dark-mode-only">
|
|
1037
|
+
<img src="https://setup-php.com/sponsors/digitalocean-white.svg" alt="Digitalocean" width="100" height="100">
|
|
1031
1038
|
</a>
|
|
1032
1039
|
</p>
|
|
1033
1040
|
|
|
1041
|
+
Many users and organizations support setup-php via [GitHub Sponsors](https://github.com/sponsors/shivammathur).
|
|
1042
|
+
|
|
1043
|
+
<a href="https://github.com/sponsors/shivammathur"><img src="https://setup-php.com/sponsors.svg?" alt="Sponsor shivammathur"></a>
|
|
1044
|
+
|
|
1045
|
+
- If you use setup-php, please consider starring the project and share it.
|
|
1046
|
+
- If you blog, please share your experience of using `setup-php`.
|
|
1047
|
+
- Please [reach out](mailto:contact@setup-php.com) if you have any questions about sponsoring setup-php.
|
|
1048
|
+
|
|
1034
1049
|
## :package: Dependencies
|
|
1035
1050
|
|
|
1036
1051
|
- [Node.js dependencies](https://github.com/shivammathur/setup-php/network/dependencies "Node.js dependencies")
|
|
@@ -1073,7 +1088,7 @@ These companies generously provide setup-php their products and services to aid
|
|
|
1073
1088
|
[`cs2pr`]: https://github.com/staabm/annotate-pull-request-from-checkstyle
|
|
1074
1089
|
[`deployer`]: https://deployer.org/
|
|
1075
1090
|
[`ecs`]: https://github.com/easy-coding-standard/easy-coding-standard
|
|
1076
|
-
[`flex`]: https://
|
|
1091
|
+
[`flex`]: https://github.com/symfony/flex
|
|
1077
1092
|
[`grpc_php_plugin`]: https://grpc.io/
|
|
1078
1093
|
[`infection`]: https://infection.github.io/
|
|
1079
1094
|
[`mago`]: https://github.com/carthage-software/mago
|
package/lib/extensions.js
CHANGED
|
@@ -56,9 +56,9 @@ async function addExtensionDarwin(extension_csv, version) {
|
|
|
56
56
|
case /.+-.+\/.+@.+/.test(extension):
|
|
57
57
|
add_script += await utils.parseExtensionSource(extension, ext_prefix);
|
|
58
58
|
return;
|
|
59
|
-
case /^(7\.4|8\.[0-5])relay(-v?\d+\.\d+\.\d
|
|
60
|
-
case /^(5\.[3-6]|7\.[0-4]|8\.[0-
|
|
61
|
-
case /^couchbase|^event|^gearman$|^geos$|^pdo_oci$|^oci8$|^(pecl_)?http|^pdo_firebird$/.test(extension):
|
|
59
|
+
case /^(7\.4|8\.[0-5])relay(-v?\d+\.\d+\.\d+|-nightly)?$/.test(version_extension):
|
|
60
|
+
case /^(5\.[3-6]|7\.[0-4]|8\.[0-5])blackfire(-\d+\.\d+\.\d+)?$/.test(version_extension):
|
|
61
|
+
case /^couchbase|^event|^gearman$|^geos$|^ibm_db2$|^pdo_ibm$|^pdo_oci$|^oci8$|^(pecl_)?http|^pdo_firebird$/.test(extension):
|
|
62
62
|
case /^(5\.[3-6]|7\.[0-4]|8\.[0-4])ioncube$/.test(version_extension):
|
|
63
63
|
case /(5\.6|7\.[0-3])phalcon3|7\.[2-4]phalcon4|(7\.4|8\.[0-4])phalcon5?/.test(version_extension):
|
|
64
64
|
case /(?<!5\.[3-6])(pdo_)?sqlsrv$/.test(version_extension):
|
|
@@ -106,8 +106,8 @@ async function addExtensionWindows(extension_csv, version) {
|
|
|
106
106
|
case /^none$/.test(ext_name):
|
|
107
107
|
add_script += '\nDisable-AllShared';
|
|
108
108
|
break;
|
|
109
|
-
case /^(5\.[3-6]|7\.[0-4]|8\.[0-
|
|
110
|
-
case /^pdo_oci$|^oci8$|^pdo_firebird$/.test(extension):
|
|
109
|
+
case /^(5\.[3-6]|7\.[0-4]|8\.[0-5])blackfire(-\d+\.\d+\.\d+)?$/.test(version_extension):
|
|
110
|
+
case /^ibm_db2$|^pdo_ibm$|^pdo_oci$|^oci8$|^pdo_firebird$/.test(extension):
|
|
111
111
|
case /^(5\.[3-6]|7\.[0-4]|8\.[0-4])ioncube$/.test(version_extension):
|
|
112
112
|
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$|^(7\.4|8\.[0-4])phalcon5?$/.test(version_extension):
|
|
113
113
|
case /^(7\.[1-4]|8\.1)(pecl_)?http/.test(version_extension):
|
|
@@ -172,10 +172,10 @@ async function addExtensionLinux(extension_csv, version) {
|
|
|
172
172
|
case /.+-.+\/.+@.+/.test(extension):
|
|
173
173
|
add_script += await utils.parseExtensionSource(extension, ext_prefix);
|
|
174
174
|
return;
|
|
175
|
-
case /^(7\.4|8\.[0-5])relay(-v?\d+\.\d+\.\d
|
|
176
|
-
case /^(5\.[3-6]|7\.[0-4]|8\.[0-
|
|
175
|
+
case /^(7\.4|8\.[0-5])relay(-v?\d+\.\d+\.\d+|-nightly)?$/.test(version_extension):
|
|
176
|
+
case /^(5\.[3-6]|7\.[0-4]|8\.[0-5])blackfire(-\d+\.\d+\.\d+)?$/.test(version_extension):
|
|
177
177
|
case /^((5\.[3-6])|(7\.[0-2]))pdo_cubrid$|^((5\.[3-6])|(7\.[0-4]))cubrid$/.test(version_extension):
|
|
178
|
-
case /^couchbase|^event|^gearman$|^geos$|^pdo_oci$|^oci8$|^(pecl_)?http|^pdo_firebird$/.test(extension):
|
|
178
|
+
case /^couchbase|^event|^gearman$|^geos$|^ibm_db2$|^pdo_ibm$|^pdo_oci$|^oci8$|^(pecl_)?http|^pdo_firebird$/.test(extension):
|
|
179
179
|
case /(?<!5\.[3-5])intl-\d+\.\d+$/.test(version_extension):
|
|
180
180
|
case /^(5\.[3-6]|7\.[0-4]|8\.[0-4])ioncube$/.test(version_extension):
|
|
181
181
|
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$|^(7\.4|8\.[0-4])phalcon5?$/.test(version_extension):
|
package/lib/extensions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../src/extensions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,
|
|
1
|
+
{"version":3,"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AC,EAAE,CAAC,CAAC,CAAC;YACjD,MAAM;QACR,KAAK,KAAK,CAAC;QACX;YACE,MAAM,IAAI,GAAG,CAAC;YACd,MAAM;IACV,CAAC;IAED,QAAQ,EAAE,EAAE,CAAC;QACX,KAAK,OAAO;YACV,OAAO,MAAM,GAAG,CAAC,MAAM,mBAAmB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;QACtE,KAAK,QAAQ;YACX,OAAO,MAAM,GAAG,CAAC,MAAM,kBAAkB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;QACrE,KAAK,OAAO;YACV,OAAO,MAAM,GAAG,CAAC,MAAM,iBAAiB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;QACpE;YACE,OAAO,MAAM,KAAK,CAAC,GAAG,CACpB,WAAW,GAAG,EAAE,GAAG,mBAAmB,EACtC,EAAE,EACF,OAAO,CACR,CAAC;IACN,CAAC;AACH,CAAC"}
|
package/lib/install.js
CHANGED
|
@@ -80,10 +80,10 @@ async function setEnv() {
|
|
|
80
80
|
process.env['GITHUB_TOKEN'] ??= await utils.getInput('github-token', false);
|
|
81
81
|
}
|
|
82
82
|
async function run() {
|
|
83
|
+
await setEnv();
|
|
83
84
|
const os = process.platform;
|
|
84
85
|
const tool = await utils.scriptTool(os);
|
|
85
86
|
const run_path = await getScript(os);
|
|
86
|
-
await setEnv();
|
|
87
87
|
await (0, exec_1.exec)(tool + run_path);
|
|
88
88
|
}
|
|
89
89
|
(async () => {
|