Update README

This commit is contained in:
Shivam Mathur 2022-12-26 03:45:00 +05:30
parent a1e6789a94
commit 8e2ac35f63
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -75,7 +75,7 @@ Both `GitHub-hosted` and `self-hosted` runners are supported by `setup-php` on t
|---------------------|------------------------------------|------------------------| |---------------------|------------------------------------|------------------------|
| Ubuntu 22.04 | `ubuntu-latest` or `ubuntu-22.04` | `PHP 8.1` | | Ubuntu 22.04 | `ubuntu-latest` or `ubuntu-22.04` | `PHP 8.1` |
| Ubuntu 20.04 | `ubuntu-20.04` | `PHP 7.4` to `PHP 8.2` | | Ubuntu 20.04 | `ubuntu-20.04` | `PHP 7.4` to `PHP 8.2` |
| Ubuntu 18.04 | `ubuntu-18.04` | `PHP 7.2` to `PHP 8.1` | | Ubuntu 18.04 | `ubuntu-18.04` | `PHP 7.2` to `PHP 8.2` |
| Windows Server 2022 | `windows-latest` or `windows-2022` | `PHP 8.2` | | Windows Server 2022 | `windows-latest` or `windows-2022` | `PHP 8.2` |
| Windows Server 2019 | `windows-2019` | `PHP 8.2` | | Windows Server 2019 | `windows-2019` | `PHP 8.2` |
| macOS Monterey 12.x | `macos-12` | `PHP 8.2` | | macOS Monterey 12.x | `macos-12` | `PHP 8.2` |
@ -464,7 +464,7 @@ On GitHub Actions you can assign the `setup-php` step an `id`, you can use the s
#### `phpts` (optional) #### `phpts` (optional)
- Specify to set up thread-safe version of PHP on Windows. - Specify to set up a thread-safe build of PHP on Linux and Windows.
- Accepts `ts` and `nts`. - Accepts `ts` and `nts`.
- By default, it is set to `nts`. - By default, it is set to `nts`.
- See [thread safe setup](#thread-safe-setup) for more info. - See [thread safe setup](#thread-safe-setup) for more info.
@ -560,17 +560,17 @@ steps:
### Thread Safe Setup ### Thread Safe Setup
> Set up `TS` or `NTS` PHP on `Windows`. > Set up `TS` or `NTS` PHP on `Linux` and `Windows`.
- `NTS` versions are set up by default. - `NTS` versions are set up by default.
- On `Ubuntu` and `macOS` only `NTS` versions are supported. - On `macOS` only `NTS` versions are supported currently.
- On `Windows` both `TS` and `NTS` versions are supported. - On `Linux` and `Windows` both `TS` and `NTS` versions are supported.
```yaml ```yaml
jobs: jobs:
run: run:
runs-on: windows-latest runs-on: [ubuntu-latest, windows-latest]
name: Setup PHP TS on Windows name: Setup PHP TS
steps: steps:
- name: Setup PHP - name: Setup PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2