You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use this GitHub Action when the extensions you are adding in [setup-php](https://github.com/shivammathur/setup-php"setup-php GitHub Action") are installed and take a long time to setup. If you are using extensions which have the result `Installed and enabled` in the logs like `pecl` extensions on `Ubuntu` or extensions which have custom support, it is recommended to use this action to cache your extensions.
See [action.yml](action.yml"Metadata for this GitHub Action") and usage below for more info.
72
75
73
76
### Workflow
77
+
74
78
> Cache extensions in a PHP workflow
75
79
76
80
```yaml
@@ -111,6 +115,19 @@ jobs:
111
115
extensions: ${{ env.extensions }}
112
116
```
113
117
118
+
### Thread Safe Setup
119
+
120
+
If you setup both `TS` and `NTS` PHP versions on `Windows` in your workflow, please add `${{ env.phpts }}` to `key` and `restore-keys` inputs in `actions/cache` step in the above workflow to avoid conflicting cache.
The scripts and documentation in this project are released under the [MIT License](LICENSE "License for shivammathur/cache-extensions"). This project has multiple [dependencies](https://github.com/shivammathur/cache-extensions/network/dependencies "Dependencies for this PHP Action"). Their licenses can be found in their respective repositories.
@@ -119,15 +136,14 @@ The scripts and documentation in this project are released under the [MIT Licens
119
136
120
137
Contributions are welcome! See [Contributor's Guide](.github/CONTRIBUTING.md "shivammathur/cache-extensions contribution guide"). If you face any issues while using this or want to suggest a feature/improvement, create an issue [here](https://github.com/shivammathur/cache-extensions/issues "Issues reported").
121
138
122
-
## :sparkling_heart: Support this project
139
+
## :sparkling_heart: Support This Project
123
140
124
141
If this action helped you.
125
142
126
143
- Sponsor the project by subscribing on [Patreon](https://www.patreon.com/shivammathur "Shivam Mathur Patreon") or by contributing using [Paypal](https://www.paypal.me/shivammathur "Shivam Mathur PayPal").
127
144
- Please star the project and share it with the community.
128
145
- If you blog, write about your experience of using this action.
129
-
- If you need any help using this, please contact me using [Codementor](https://www.codementor.io/shivammathur "Shivam Mathur Codementor")u need any help using this, please contact me using [Codementor](https://www.codementor.io/shivammathur "Shivam Mathur Codementor")
0 commit comments