Skip to content

Commit 4db45d6

Browse files
authored
Merge pull request #14 from shivammathur/develop
1.1.3
2 parents 506984d + 7045a9c commit 4db45d6

32 files changed

+78
-33
lines changed

README.md

+21-5
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ Cache PHP extensions in [GitHub Actions](https://github.com/features/actions "Gi
1616
- [Usage](#memo-usage)
1717
- [Inputs](#inputs)
1818
- [Workflow](#workflow)
19+
- [Thread Safe Setup](#thread-safe-setup)
1920
- [License](#scroll-license)
2021
- [Contributions](#1-contributions)
21-
- [Support this project](#sparkling_heart-support-this-project)
22-
- [Dependencies](#bookmark-dependencies)
22+
- [Support This Project](#sparkling_heart-support-this-project)
23+
- [Dependencies](#package-dependencies)
2324

2425
## :tada: PHP Support
2526

@@ -48,6 +49,8 @@ Cache PHP extensions in [GitHub Actions](https://github.com/features/actions "Gi
4849

4950
## :memo: Usage
5051

52+
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.
53+
5154
### Inputs
5255

5356
#### `php-version` (required)
@@ -71,6 +74,7 @@ Cache PHP extensions in [GitHub Actions](https://github.com/features/actions "Gi
7174
See [action.yml](action.yml "Metadata for this GitHub Action") and usage below for more info.
7275

7376
### Workflow
77+
7478
> Cache extensions in a PHP workflow
7579
7680
```yaml
@@ -111,6 +115,19 @@ jobs:
111115
extensions: ${{ env.extensions }}
112116
```
113117
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.
121+
122+
```yaml
123+
- name: Cache extensions
124+
uses: actions/cache@v2
125+
with:
126+
path: ${{ steps.extcache.outputs.dir }}
127+
key: ${{ steps.extcache.outputs.key }}-${{ env.phpts }}
128+
restore-keys: ${{ steps.extcache.outputs.key }}-${{ env.phpts }}
129+
```
130+
114131
## :scroll: License
115132

116133
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
119136

120137
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").
121138

122-
## :sparkling_heart: Support this project
139+
## :sparkling_heart: Support This Project
123140

124141
If this action helped you.
125142

126143
- 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").
127144
- Please star the project and share it with the community.
128145
- 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")
130146

131-
## :bookmark: Dependencies
147+
## :package: Dependencies
132148

133149
- [Node.js dependencies](https://github.com/shivammathur/setup-php/network/dependencies "Node.js dependencies")

package-lock.json

+26-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cache-extensions",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"private": false,
55
"description": "Cache extensions in GitHub Actions",
66
"main": "dist/index.js",
@@ -28,7 +28,7 @@
2828
"@actions/exec": "^1.0.4"
2929
},
3030
"devDependencies": {
31-
"@types/jest": "^26.0.8",
31+
"@types/jest": "^26.0.9",
3232
"@types/node": "^14.0.27",
3333
"@typescript-eslint/eslint-plugin": "^3.8.0",
3434
"@typescript-eslint/parser": "^3.8.0",

src/lists/bionic-php5.3-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ bcmath
55
bz2
66
Core
77
ctype
8+
cubrid
89
curl
910
date
1011
dom

src/lists/bionic-php5.4-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bz2
66
calendar
77
Core
88
ctype
9+
cubrid
910
curl
1011
date
1112
dba

src/lists/bionic-php5.5-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bz2
66
calendar
77
Core
88
ctype
9+
cubrid
910
curl
1011
date
1112
dba

src/lists/bionic-php5.6-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ apcu
55
calendar
66
Core
77
ctype
8+
cubrid
89
curl
910
date
1011
dom

src/lists/bionic-php7.0-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apcu
44
calendar
55
Core
66
ctype
7+
cubrid
78
curl
89
date
910
dom

src/lists/bionic-php7.1-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bz2
66
calendar
77
Core
88
ctype
9+
cubrid
910
curl
1011
date
1112
dba

src/lists/bionic-php7.2-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bz2
66
calendar
77
Core
88
ctype
9+
cubrid
910
curl
1011
date
1112
dba

src/lists/bionic-php7.3-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bz2
66
calendar
77
Core
88
ctype
9+
cubrid
910
curl
1011
date
1112
dba

src/lists/bionic-php7.4-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bz2
66
calendar
77
Core
88
ctype
9+
cubrid
910
curl
1011
date
1112
dba

src/lists/focal-php5.3-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ bcmath
55
bz2
66
Core
77
ctype
8+
cubrid
89
curl
910
date
1011
dom

src/lists/focal-php5.4-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bz2
66
calendar
77
Core
88
ctype
9+
cubrid
910
curl
1011
date
1112
dba

src/lists/focal-php5.5-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bz2
66
calendar
77
Core
88
ctype
9+
cubrid
910
curl
1011
date
1112
dba

src/lists/focal-php5.6-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ apcu
55
calendar
66
Core
77
ctype
8+
cubrid
89
curl
910
date
1011
dom

src/lists/focal-php7.0-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apcu
44
calendar
55
Core
66
ctype
7+
cubrid
78
curl
89
date
910
dom

src/lists/focal-php7.1-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apcu
44
calendar
55
Core
66
ctype
7+
cubrid
78
curl
89
date
910
dom

src/lists/focal-php7.2-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apcu
44
calendar
55
Core
66
ctype
7+
cubrid
78
curl
89
date
910
dom

src/lists/focal-php7.3-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apcu
44
calendar
55
Core
66
ctype
7+
cubrid
78
curl
89
date
910
dom

src/lists/focal-php7.4-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bz2
66
calendar
77
Core
88
ctype
9+
cubrid
910
curl
1011
date
1112
dba

src/lists/focal-php8.0-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ bz2
44
calendar
55
Core
66
ctype
7+
cubrid
78
curl
89
date
910
dom

src/lists/xenial-php5.3-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ bcmath
55
bz2
66
Core
77
ctype
8+
cubrid
89
curl
910
date
1011
dom

src/lists/xenial-php5.4-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bz2
66
calendar
77
Core
88
ctype
9+
cubrid
910
curl
1011
date
1112
dba

src/lists/xenial-php5.5-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bz2
66
calendar
77
Core
88
ctype
9+
cubrid
910
curl
1011
date
1112
dba

src/lists/xenial-php5.6-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ bz2
77
calendar
88
Core
99
ctype
10+
cubrid
1011
curl
1112
date
1213
dba

src/lists/xenial-php7.0-extensions

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bz2
66
calendar
77
Core
88
ctype
9+
cubrid
910
curl
1011
date
1112
dba

0 commit comments

Comments
 (0)