cache-extensions 1.15.1 → 1.15.3

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  <a href="https://github.com/shivammathur/cache-extensions" title="Cache PHP extensions in GitHub Actions"><img alt="GitHub Actions status" src="https://github.com/shivammathur/cache-extensions/workflows/Node%20test%20workflow/badge.svg"></a>
5
5
  <a href="https://codecov.io/gh/shivammathur/cache-extensions" title="Code coverage"><img alt="Codecov Code Coverage" src="https://codecov.io/gh/shivammathur/cache-extensions/branch/master/graph/badge.svg"></a>
6
6
  <a href="https://github.com/shivammathur/cache-extensions/blob/master/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>
7
- <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>
7
+ <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.7-777bb3.svg?logo=php&logoColor=white&labelColor=555555"></a>
8
8
  </p>
9
9
 
10
10
  Cache PHP extensions in [GitHub Actions](https://github.com/features/actions "GitHub Actions"). This action has to be used along with [shivammathur/setup-php](https://github.com/shivammathur/setup-php "Setup PHP") and [actions/cache](https://github.com/actions/cache "Cache in GitHub Actions") GitHub Actions. It configures the environment required to cache PHP extensions. Refer to [Usage](#memo-usage "How to use this") section for details and example workflow.
@@ -43,13 +43,16 @@ Cache PHP extensions in [GitHub Actions](https://github.com/features/actions "Gi
43
43
  | 8.4 |`Stable`|`Active`|
44
44
  | 8.5 |`Stable`|`Active`|
45
45
  | 8.6 |`Nightly`|`In development`|
46
+ | 8.7 |`Nightly`|`In development`|
46
47
 
47
48
  ## :cloud: OS/Platform Support
48
49
 
49
50
  | Virtual environment | Arch | YAML workflow label |
50
51
  |---------------------|---------|------------------------------------|
52
+ | Ubuntu 26.04 | x86_64 | `ubuntu-26.04` |
51
53
  | Ubuntu 24.04 | x86_64 | `ubuntu-latest` or `ubuntu-24.04` |
52
54
  | Ubuntu 22.04 | x86_64 | `ubuntu-22.04` |
55
+ | Ubuntu 26.04 | aarch64 | `ubuntu-26.04-arm` |
53
56
  | Ubuntu 24.04 | aarch64 | `ubuntu-24.04-arm` |
54
57
  | Ubuntu 22.04 | aarch64 | `ubuntu-22.04-arm` |
55
58
  | Windows Server 2025 | x64 | `windows-2025` |
@@ -73,7 +76,8 @@ Use this GitHub Action when the extensions you are adding in [setup-php](https:/
73
76
  - Specify the PHP version you want to set up.
74
77
  - Accepts a `string`. For example `'8.5'`.
75
78
  - Accepts `latest` to set up the latest stable PHP version.
76
- - Accepts `nightly` to set up a nightly build from the master branch of PHP.
79
+ - Accepts `nightly` to set up a nightly build of the next PHP release.
80
+ - Accepts `master` to set up a nightly build from the master branch of PHP.
77
81
  - Accepts the format `d.x`, where `d` is the major version. For example `5.x`, `7.x` and `8.x`.
78
82
  - See [PHP support](#tada-php-support) for the supported PHP versions.
79
83
  - If not specified, it looks for `php-version-file` input.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cache-extensions",
3
- "version": "1.15.1",
3
+ "version": "1.15.3",
4
4
  "private": false,
5
5
  "description": "Cache PHP extensions in GitHub Actions",
6
6
  "type": "module",
@@ -39,40 +39,40 @@
39
39
  "author": "shivammathur",
40
40
  "license": "MIT",
41
41
  "dependencies": {
42
- "@actions/cache": "^6.2.0",
42
+ "@actions/cache": "^6.3.0",
43
43
  "@actions/core": "^3.0.1",
44
44
  "@actions/exec": "^3.0.0",
45
45
  "setup-php": "^2.37.2"
46
46
  },
47
47
  "devDependencies": {
48
- "@eslint/compat": "^2.1.0",
49
- "@eslint/eslintrc": "^3.3.6",
48
+ "@eslint/compat": "^2.1.1",
49
+ "@eslint/eslintrc": "^3.3.7",
50
50
  "@eslint/js": "^10.0.1",
51
51
  "@types/jest": "^30.0.0",
52
- "@types/node": "^26.2.0",
53
- "@typescript-eslint/eslint-plugin": "^8.67.0",
54
- "@typescript-eslint/parser": "^8.67.0",
52
+ "@types/node": "^26.6.3",
53
+ "@typescript-eslint/eslint-plugin": "^8.70.1",
54
+ "@typescript-eslint/parser": "^8.70.1",
55
55
  "@typescript/native": "npm:typescript@^7.0.2",
56
56
  "@vercel/ncc": "^0.45.0",
57
- "eslint": "^10.8.1",
57
+ "eslint": "^10.11.0",
58
58
  "eslint-config-prettier": "^10.1.8",
59
59
  "eslint-import-resolver-typescript": "^4.4.5",
60
60
  "eslint-plugin-import-x": "^4.17.1",
61
- "eslint-plugin-jest": "^29.16.1",
61
+ "eslint-plugin-jest": "^29.16.6",
62
62
  "eslint-plugin-prettier": "^5.5.6",
63
- "globals": "^17.11.0",
64
- "jest": "^30.4.2",
65
- "jest-circus": "^30.4.2",
66
- "prettier": "^3.9.6",
67
- "ts-jest": "^29.4.12",
63
+ "globals": "^17.12.0",
64
+ "jest": "^30.5.2",
65
+ "jest-circus": "^30.5.2",
66
+ "prettier": "^3.9.9",
67
+ "ts-jest": "^29.4.14",
68
68
  "ts-node": "^10.9.2",
69
69
  "typescript": "npm:@typescript/typescript6@^6.0.2"
70
70
  },
71
71
  "overrides": {
72
- "brace-expansion@1.x": "^1.1.18",
73
- "test-exclude": "^7.0.1",
72
+ "brace-expansion@1.x": "^1.1.21",
73
+ "test-exclude": "^8.0.0",
74
74
  "glob": "^13.0.6",
75
- "undici": "^6.23.0"
75
+ "undici": "^6.29.0"
76
76
  },
77
77
  "bugs": {
78
78
  "url": "https://github.com/shivammathur/cache-extensions/issues"
@@ -9,6 +9,7 @@ event
9
9
  excimer
10
10
  expect
11
11
  gearman
12
+ geos
12
13
  gmagick
13
14
  gnupg
14
15
  grpc
@@ -141,7 +141,7 @@ libfribidi0
141
141
  libfsverity0
142
142
  libftdi1-2
143
143
  libfuse3-3
144
- libfwupd2
144
+ libfwupd3
145
145
  libgbm1
146
146
  libgc1
147
147
  libgcc-12-dev
@@ -183,7 +183,6 @@ libgstreamer1.0-0
183
183
  libgtk-3-0t64
184
184
  libgtk-3-common
185
185
  libgudev-1.0-0
186
- libgusb2
187
186
  libharfbuzz0b
188
187
  libhashkit2t64
189
188
  libhavege2
@@ -533,5 +532,6 @@ libzstd-dev
533
532
  libzstd1
534
533
  python3-launchpadlib
535
534
  python3-oauthlib
535
+ python3-passlib
536
536
  python3-wadllib
537
537
  texinfo-lib
@@ -0,0 +1,546 @@
1
+ lib32gcc-s1
2
+ lib32stdc++6
3
+ libacl1
4
+ libaio1t64
5
+ libaom3
6
+ libapparmor1
7
+ libappstream5
8
+ libapr1t64
9
+ libaprutil1-dbd-sqlite3
10
+ libaprutil1-ldap
11
+ libaprutil1t64
12
+ libapt-pkg7.0
13
+ libarchive13t64
14
+ libargon2-1
15
+ libaria2-0
16
+ libasan8
17
+ libasound2-data
18
+ libasound2t64
19
+ libaspell15
20
+ libassuan9
21
+ libatasmart4
22
+ libatk-bridge2.0-0t64
23
+ libatk1.0-0t64
24
+ libatomic1
25
+ libatspi2.0-0t64
26
+ libattr1
27
+ libaudit-common
28
+ libaudit1
29
+ libavahi-client3
30
+ libavahi-common-data
31
+ libavahi-common3
32
+ libbinutils
33
+ libblkid1
34
+ libblockdev-crypto3
35
+ libblockdev-fs3
36
+ libblockdev-loop3
37
+ libblockdev-mdraid3
38
+ libblockdev-nvme3
39
+ libblockdev-part3
40
+ libblockdev-smart3
41
+ libblockdev-swap3
42
+ libblockdev-utils3
43
+ libblockdev3
44
+ libbpf1
45
+ libbpfcc
46
+ libbrotli1
47
+ libbsd0
48
+ libbytesize-common
49
+ libbytesize1
50
+ libbz2-1.0
51
+ libc-bin
52
+ libc-dev-bin
53
+ libc-gconv-modules-extra
54
+ libc6
55
+ libc6-dev
56
+ libc6-i386
57
+ libcairo-gobject2
58
+ libcairo2
59
+ libcanberra0
60
+ libcap-ng0
61
+ libcap2
62
+ libcap2-bin
63
+ libcares2
64
+ libcbor0.10
65
+ libcc1-0
66
+ libcgi-fast-perl
67
+ libcgi-pm-perl
68
+ libclang-common-20-dev
69
+ libclang-common-21-dev
70
+ libclang-common-22-dev
71
+ libclang-cpp20
72
+ libclang-cpp21
73
+ libclang-cpp22
74
+ libclang-rt-20-dev
75
+ libclang-rt-21-dev
76
+ libclang-rt-22-dev
77
+ libclang1-20
78
+ libclang1-21
79
+ libclang1-22
80
+ libclone-perl
81
+ libcolord2
82
+ libcom-err2
83
+ libcommon-sense-perl
84
+ libcompel1
85
+ libcriu2
86
+ libcrypt-dev
87
+ libcrypt1
88
+ libcryptsetup12
89
+ libctf-nobfd0
90
+ libctf0
91
+ libcups2t64
92
+ libcurl3t64-gnutls
93
+ libcurl4t64
94
+ libdatrie1
95
+ libdb5.3t64
96
+ libdbus-1-3
97
+ libdbusmenu-glib4
98
+ libdbusmenu-gtk3-4
99
+ libdconf1
100
+ libdebconfclient0
101
+ libdebuginfod-common
102
+ libdebuginfod1t64
103
+ libdeflate0
104
+ libdevmapper-event1.02.1
105
+ libdevmapper1.02.1
106
+ libdpkg-perl
107
+ libdrm-amdgpu1
108
+ libdrm-common
109
+ libdrm-intel1
110
+ libdrm2
111
+ libduktape207
112
+ libdw1t64
113
+ libeatmydata1
114
+ libedit2
115
+ libefiboot1t64
116
+ libefivar1t64
117
+ libelf1t64
118
+ libenchant-2-2
119
+ libencode-locale-perl
120
+ libepoxy0
121
+ liberror-perl
122
+ libestr0
123
+ libevdev2
124
+ libevent-core-2.1-7t64
125
+ libexpat1
126
+ libexpat1-dev
127
+ libext2fs2t64
128
+ libfakeroot
129
+ libfastjson4
130
+ libfbclient2
131
+ libfcgi-bin
132
+ libfcgi-perl
133
+ libfcgi0t64
134
+ libfdisk1
135
+ libffi-dev
136
+ libffi8
137
+ libfftw3-double3
138
+ libfido2-1
139
+ libflashrom1
140
+ libfontconfig1
141
+ libfontenc1
142
+ libfreetype6
143
+ libfribidi0
144
+ libfsverity0
145
+ libftdi1-2
146
+ libfuse3-4
147
+ libfwupd3
148
+ libfyaml0
149
+ libgbm1
150
+ libgc1
151
+ libgcc-13-dev
152
+ libgcc-14-dev
153
+ libgcc-15-dev
154
+ libgcc-s1
155
+ libgcrypt20
156
+ libgd3
157
+ libgdbm-compat4t64
158
+ libgdbm6t64
159
+ libgdk-pixbuf-2.0-0
160
+ libgdk-pixbuf2.0-common
161
+ libgfortran-13-dev
162
+ libgfortran-14-dev
163
+ libgfortran-15-dev
164
+ libgfortran5
165
+ libgirepository-2.0-0
166
+ libgl1
167
+ libgl1-mesa-dri
168
+ libglib2.0-0t64
169
+ libglib2.0-bin
170
+ libglib2.0-data
171
+ libglvnd0
172
+ libglx-mesa0
173
+ libglx0
174
+ libglycin-2-0
175
+ libgmp-dev
176
+ libgmp10
177
+ libgmpxx4ldbl
178
+ libgnutls30t64
179
+ libgomp1
180
+ libgoogle-perftools4t64
181
+ libgpg-error-l10n
182
+ libgpg-error0
183
+ libgpgme45
184
+ libgpm2
185
+ libgprofng0
186
+ libgraphite2-3
187
+ libgssapi-krb5-2
188
+ libgstreamer1.0-0
189
+ libgtk-3-0t64
190
+ libgtk-3-common
191
+ libgudev-1.0-0
192
+ libharfbuzz0b
193
+ libhashkit2t64
194
+ libheif-plugin-aomdec
195
+ libheif1
196
+ libhogweed6t64
197
+ libhtml-parser-perl
198
+ libhtml-tagset-perl
199
+ libhtml-template-perl
200
+ libhttp-date-perl
201
+ libhttp-message-perl
202
+ libhunspell-1.7-0
203
+ libhwasan0
204
+ libhwy1t64
205
+ libibverbs1
206
+ libice6
207
+ libicu-dev
208
+ libicu78
209
+ libidn2-0
210
+ libimagequant0
211
+ libinih1
212
+ libintl-perl
213
+ libintl-xs-perl
214
+ libio-html-perl
215
+ libip4tc2
216
+ libip6tc2
217
+ libipt2
218
+ libisl23
219
+ libisns0t64
220
+ libitm1
221
+ libjansson4
222
+ libjbig0
223
+ libjcat1
224
+ libjemalloc2
225
+ libjpeg-turbo8
226
+ libjpeg8
227
+ libjq1
228
+ libjs-jquery
229
+ libjs-sphinxdoc
230
+ libjson-c5
231
+ libjson-glib-1.0-0
232
+ libjson-glib-1.0-common
233
+ libjson-perl
234
+ libjson-xs-perl
235
+ libjxl0.11
236
+ libk5crypto3
237
+ libkeyutils1
238
+ libklibc
239
+ libkmod2
240
+ libkrb5-3
241
+ libkrb5support0
242
+ libksba8
243
+ liblastlog2-2
244
+ liblcms2-2
245
+ libldap-common
246
+ libldap2
247
+ liblerc4
248
+ liblldb-20
249
+ liblldb-21
250
+ liblldb-22
251
+ libllvm20
252
+ libllvm21
253
+ libllvm22
254
+ liblmdb0
255
+ liblocale-gettext-perl
256
+ liblqr-1-0
257
+ liblsan0
258
+ liblsof0
259
+ libltdl7
260
+ liblttng-ust-common1t64
261
+ liblttng-ust-ctl6
262
+ liblttng-ust1t64
263
+ liblua5.3-0
264
+ liblua5.4-0
265
+ liblvm2cmd2.03
266
+ liblwp-mediatypes-perl
267
+ liblz4-1
268
+ liblz4-dev
269
+ liblzma-dev
270
+ liblzma5
271
+ liblzo2-2
272
+ libmagic-mgc
273
+ libmagic1t64
274
+ libmagickcore-7.q16-10
275
+ libmagickwand-7.q16-10
276
+ libmaxminddb0
277
+ libmbim-glib4
278
+ libmbim-proxy
279
+ libmbim-utils
280
+ libmd0
281
+ libmecab2
282
+ libmemcached11t64
283
+ libmm-glib0
284
+ libmnl0
285
+ libmodule-find-perl
286
+ libmount1
287
+ libmpathcmd0
288
+ libmpathpersist0
289
+ libmpc3
290
+ libmpfr6
291
+ libmspack0t64
292
+ libmultipath0
293
+ libmysqlclient-dev
294
+ libmysqlclient24
295
+ libncurses-dev
296
+ libncurses6
297
+ libncursesw6
298
+ libnet9
299
+ libnetfilter-conntrack3
300
+ libnetplan1
301
+ libnettle8t64
302
+ libnewt0.52
303
+ libnfnetlink0
304
+ libnftables1
305
+ libnftnl11
306
+ libnghttp2-14
307
+ libnl-3-200
308
+ libnl-genl-3-200
309
+ libnl-route-3-200
310
+ libnorm1t64
311
+ libnpth0t64
312
+ libnspr4
313
+ libnss-systemd
314
+ libnss3
315
+ libnss3-tools
316
+ libntfs-3g89t64
317
+ libnuma1
318
+ libnvme1t64
319
+ libobjc-15-dev
320
+ libobjc4
321
+ libodbc2
322
+ libogg0
323
+ libonig5
324
+ libopeniscsiusr
325
+ libopenjp2-7
326
+ libp11-kit0
327
+ libpackagekit-glib2-18
328
+ libpam-cap
329
+ libpam-modules
330
+ libpam-modules-bin
331
+ libpam-runtime
332
+ libpam-systemd
333
+ libpam0g
334
+ libpango-1.0-0
335
+ libpangocairo-1.0-0
336
+ libpangoft2-1.0-0
337
+ libparted2t64
338
+ libpcap0.8t64
339
+ libpci3
340
+ libpciaccess0
341
+ libpcre2-16-0
342
+ libpcre2-32-0
343
+ libpcre2-8-0
344
+ libpcre2-dev
345
+ libpcre2-posix3
346
+ libperl5.40
347
+ libpfm4
348
+ libpgm-5.3-0t64
349
+ libpipeline1
350
+ libpixman-1-0
351
+ libpkgconf7
352
+ libplymouth5
353
+ libpng16-16t64
354
+ libpolkit-agent-1-0
355
+ libpolkit-gobject-1-0
356
+ libpopt0
357
+ libpq-dev
358
+ libpq5
359
+ libproc-processtable-perl
360
+ libproc2-0
361
+ libprotobuf-c1
362
+ libprotobuf-lite32t64
363
+ libpsl5t64
364
+ libpython3-dev
365
+ libpython3-stdlib
366
+ libpython3.14
367
+ libpython3.14-dev
368
+ libpython3.14-minimal
369
+ libpython3.14-stdlib
370
+ libqdbm14t64
371
+ libqmi-glib5
372
+ libqmi-proxy
373
+ libqmi-utils
374
+ libqrtr-glib0
375
+ libquadmath0
376
+ librabbitmq4
377
+ libraw23t64
378
+ libreadline8t64
379
+ librpm-sequoia-1
380
+ librpm10
381
+ librpmbuild10
382
+ librpmio10
383
+ librpmsign10
384
+ librsvg2-2
385
+ librtmp1
386
+ libruby
387
+ libruby3.3
388
+ libsasl2-2
389
+ libsasl2-modules
390
+ libsasl2-modules-db
391
+ libseccomp2
392
+ libselinux1
393
+ libsemanage-common
394
+ libsemanage2
395
+ libsensors-config
396
+ libsensors5
397
+ libsepol2
398
+ libsframe3
399
+ libsgutils2-1.48
400
+ libsharpyuv0
401
+ libslang2
402
+ libslirp0
403
+ libsm6
404
+ libsmartcols1
405
+ libsnappy1v5
406
+ libsnmp-base
407
+ libsnmp40t64
408
+ libsodium23
409
+ libsort-naturally-perl
410
+ libsqlite3-0
411
+ libsqlite3-dev
412
+ libss2
413
+ libssh2-1t64
414
+ libssl-dev
415
+ libssl3t64
416
+ libstdc++-13-dev
417
+ libstdc++-14-dev
418
+ libstdc++-15-dev
419
+ libstdc++6
420
+ libstemmer0d
421
+ libsubid5
422
+ libsybdb5
423
+ libsystemd-shared
424
+ libsystemd0
425
+ libtalloc2
426
+ libtasn1-6
427
+ libtcl8.6
428
+ libtcmalloc-minimal4t64
429
+ libtdb1
430
+ libterm-readkey-perl
431
+ libtext-charwidth-perl
432
+ libtext-iconv-perl
433
+ libtext-unidecode-perl
434
+ libtext-wrapi18n-perl
435
+ libthai-data
436
+ libthai0
437
+ libtidy58
438
+ libtiff6
439
+ libtimedate-perl
440
+ libtinfo6
441
+ libtirpc-common
442
+ libtirpc3t64
443
+ libtk8.6
444
+ libtommath1
445
+ libtool
446
+ libtraceevent1
447
+ libtraceevent1-plugin
448
+ libtracefs1
449
+ libtsan2
450
+ libtss2-esys-3.0.2-0t64
451
+ libtss2-mu-4.0.1-0t64
452
+ libtss2-rc0t64
453
+ libtss2-sys1t64
454
+ libtss2-tcti-cmd0t64
455
+ libtss2-tcti-device0t64
456
+ libtss2-tcti-mssim0t64
457
+ libtss2-tcti-swtpm0t64
458
+ libtypes-serialiser-perl
459
+ libubsan1
460
+ libuchardet0
461
+ libudev1
462
+ libudisks2-0
463
+ libunistring5
464
+ libunwind8
465
+ liburcu8t64
466
+ liburi-perl
467
+ liburing2
468
+ libusb-1.0-0
469
+ libuuid1
470
+ libuv1t64
471
+ libvolume-key1
472
+ libvorbis0a
473
+ libvorbisfile3
474
+ libvulkan1
475
+ libwayland-client0
476
+ libwayland-cursor0
477
+ libwayland-egl1
478
+ libwbclient0
479
+ libwebp7
480
+ libwebpdemux2
481
+ libwebpmux3
482
+ libwrap0
483
+ libx11-6
484
+ libx11-data
485
+ libx11-xcb1
486
+ libxau6
487
+ libxaw7
488
+ libxcb-dri3-0
489
+ libxcb-glx0
490
+ libxcb-present0
491
+ libxcb-randr0
492
+ libxcb-render0
493
+ libxcb-shm0
494
+ libxcb-sync1
495
+ libxcb-xfixes0
496
+ libxcb1
497
+ libxcomposite1
498
+ libxcursor1
499
+ libxdamage1
500
+ libxdmcp6
501
+ libxext6
502
+ libxfixes3
503
+ libxfont2
504
+ libxft2
505
+ libxi6
506
+ libxinerama1
507
+ libxkbcommon0
508
+ libxkbfile1
509
+ libxml-libxml-perl
510
+ libxml-namespacesupport-perl
511
+ libxml-sax-base-perl
512
+ libxml-sax-perl
513
+ libxml2-16
514
+ libxml2-dev
515
+ libxmlb2
516
+ libxmlsec1-1
517
+ libxmlsec1-openssl1
518
+ libxmu6
519
+ libxmuu1
520
+ libxpm4
521
+ libxrandr2
522
+ libxrender1
523
+ libxres1
524
+ libxshmfence1
525
+ libxslt1.1
526
+ libxss1
527
+ libxt6t64
528
+ libxtables12
529
+ libxtst6
530
+ libxxf86vm1
531
+ libxxhash-dev
532
+ libxxhash0
533
+ libyajl2
534
+ libyaml-0-2
535
+ libyaml-dev
536
+ libz3-4
537
+ libz3-dev
538
+ libzip5
539
+ libzmq5
540
+ libzstd-dev
541
+ libzstd1
542
+ python3-launchpadlib
543
+ python3-oauthlib
544
+ python3-passlib
545
+ python3-wadllib
546
+ texinfo-lib
@@ -38,11 +38,16 @@ download_ppa_file() {
38
38
  local file=$1
39
39
  local target=$2
40
40
  local root
41
+ local available_roots=("https://ppa.launchpadcontent.net" "https://ppa.setup-php.com")
42
+ if [[ "${VERSION_ID//./}" -ge 2604 ]]; then
43
+ available_roots=("https://packages.sury.org/php")
44
+ file="${file#ondrej/php/ubuntu/}"
45
+ fi
41
46
  local roots=()
42
47
  if [[ -n "${preferred_ppa_root:-}" ]]; then
43
48
  roots+=("$preferred_ppa_root")
44
49
  fi
45
- for root in "https://ppa.launchpadcontent.net" "https://ppa.setup-php.com"; do
50
+ for root in "${available_roots[@]}"; do
46
51
  [[ "$root" = "${preferred_ppa_root:-}" ]] && continue
47
52
  roots+=("$root")
48
53
  done
@@ -124,7 +129,7 @@ setup_extensions() {
124
129
 
125
130
  filter_libraries() {
126
131
  libraries="$(echo "$1" | xargs -n1 | sort | uniq | xargs)"
127
- if [ "$runner" = "github" ]; then
132
+ if [[ "$runner" = "github" && -f "${script_dir:?}/../lists/$VERSION_CODENAME-libs" ]]; then
128
133
  for library in $libraries; do
129
134
  if grep -i -q -w "$library" "${script_dir:?}"/../lists/"$VERSION_CODENAME"-libs; then
130
135
  libraries=${libraries//$library/}