Commit Graph

757 Commits

Author SHA1 Message Date
Shivam Mathur 52fea29a50 Run cached PHP install in PhpManager scope 2026-09-04 11:25:34 +05:30
Shivam Mathur 1d62418c5a Validate cached Xdebug 2 on macOS 2026-09-03 20:10:28 +05:30
Shivam Mathur e4c0f64cb6 Suppress PECL info warnings 2026-09-03 15:39:00 +05:30
Shivam Mathur 4de6f6f4a5 Install cached Windows PHP builds directly 2026-09-03 13:59:30 +05:30
Shivam Mathur 14d457bbef Drop Intel macOS support 2026-09-01 10:42:02 +05:30
Shivam Mathur 9fe8278c96 Skip php-darwin cache on Intel macOS 2026-09-01 10:36:34 +05:30
Shivam Mathur b8123f29e1 Reuse the PHP Windows download URL 2026-08-29 23:24:25 +05:30
Shivam Mathur 3cd644eeae Use manifests for Windows PHP release assets 2026-08-29 23:16:02 +05:30
Shivam Mathur 047d693cbc Use php-darwin caches on macOS 2026-08-29 22:32:59 +05:30
Shivam Mathur 12cc6a507b Fix versioned extension caching 2026-08-19 14:35:13 +05:30
Ibrahim Lawal 33139dbaea Honor a cache-restored build when a versioned extension mismatches (#1108)
* fix: honor a cache-restored build when a versioned extension mismatches

When a PHP package install bundles its own default build of a versioned
extension (e.g. redis ships with its own recent version pre-enabled),
add_pecl_extension correctly detects the version mismatch against the
pinned version and falls back to pecl_install - but it does this even
when a matching build has already been restored from a CI cache into a
separate directory, since shared_extension only checks that *some* file
exists at ext_dir, not which version it is.

This adds an opt-in CACHED_EXTENSIONS_DIR: when set and a mismatch is
detected, look for extension.so there, and if found, copy it into
ext_dir and re-check before falling back to a full pecl_install. When
CACHED_EXTENSIONS_DIR is unset, behavior is unchanged.

Related to shivammathur/cache-extensions#21 and #37, where a cached
build of a versioned PECL extension is silently ignored and
recompiled on every run regardless of caching.

* fix: preserve versioned builds in ext_dir instead of a separate cache dir

Per @shivammathur's review on the PR: drop the opt-in
CACHED_EXTENSIONS_DIR env var. Instead, after installing a versioned
extension, keep a second copy of the built .so in ext_dir itself under
a name with no .so suffix (e.g. redis-5.3.7), so it can't be mistaken
for the active extension and rides along in the same ext_dir that
cache-extensions already caches wholesale - no separate cache
directory, key, or workflow step required. On a version mismatch,
restore that preserved build over the active binary and re-check
before falling back to a full pecl_install.
2026-08-19 13:21:10 +05:30
damiantw 7d04f5ee7e Add Laravel Cloud CLI Tool (#1106)
* Add Laravel Cloud CLI Tool

* Fix extensions
2026-08-12 21:41:33 +05:30
Shivam Mathur 2608ba9a1a Fix geos patch URLs 2026-07-27 11:36:12 +05:30
Shivam Mathur 8e6e5267e7 Harden tool checksum verification (#1099) 2026-07-23 19:24:32 +05:30
Keisuke Maeda 8ca9579834 Add support for pinning tools to a checksum (#1098)
Tools in the tools input can now be pinned to a checksum using the
tool:version@sha256:<hash> or tool:version@sha512:<hash> syntax.
The downloaded tool is verified against the checksum on all platforms,
including when it is served from the tools cache, and it is removed
along with its cache entry if the verification fails.

Checksum verification is supported for tools downloaded as phar
archives. Specifying a checksum for tools set up using composer
packages or custom package scripts results in an error.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-23 18:15:59 +05:30
Shivam Mathur 1b1cce8c66 Add initial support for Ubuntu 26.04 [skip ci] 2026-06-18 04:28:47 +05:30
Shivam Mathur 8be473cdc3 Trust brew taps 2026-06-08 20:54:32 +05:30
Shivam Mathur 0dc33069a3 Fix phalcon5 support on Windows 2026-05-14 03:00:30 +05:30
Shivam Mathur 680a983990 Fix phalcon version for PHP 8.0 [skip ci] 2026-05-14 03:00:29 +05:30
Shivam Mathur 694649a4a3 Fix mutable tool cache restore 2026-05-13 19:43:21 +05:30
Shivam Mathur 7748c24380 GHSA-f9f8-rm49-7jv2: Fix GitHub auth handling for composer in affected versions 2026-05-13 16:19:11 +05:30
Shivam Mathur 7729e411ec Improve enabling gearman [skip ci] 2026-04-29 01:00:16 +05:30
Shivam Mathur af2322b95c Fix fallback in Install-PSPackage on Windows 2026-04-26 23:49:26 +05:30
Shivam Mathur a5c2146f3f Improve tool cache to not cache persistent urls 2026-03-15 11:36:39 +05:30
Shivam Mathur 6a1d559c57 Fix regression in pecl_http support [skip ci] 2026-03-15 11:18:29 +05:30
Shivam Mathur bc6f40a11a Switch to downloads.php.net in Get-ICUUrl [skip ci] 2026-03-13 21:33:26 +05:30
Shivam Mathur e67ff94e49 Fix caching couchbase on macOS [skip ci] 2026-03-13 20:15:35 +05:30
Shivam Mathur 4e89813b4b Improve switch_version on Linux 2026-03-12 19:35:06 +05:30
Shivam Mathur a1e0f566a8 Revert to old brew linking behaviour 2026-03-08 17:23:40 +05:30
Shivam Mathur 769a4a81fd Update sqlsrv and pdo_sqlsrv versions [skip ci] 2026-02-28 02:22:42 +05:30
Shivam Mathur d042aafd13 Add retry and timeout for stuck brew calls 2026-02-23 15:42:41 +05:30
Shivam Mathur 57e8183dae Switch to brew formula for pdo_firebird on macos [skip ci] 2026-02-08 11:29:04 +05:30
Shivam Mathur 1eee54fe48 Fix paths for bin tools and scoped tools [skip ci] 2026-01-23 01:04:38 +05:30
Shivam Mathur 341bc9e176 Improve cache for tools 2026-01-21 17:02:28 +05:30
Shivam Mathur 185f9de395 Fix linking tools 2026-01-21 15:54:25 +05:30
Shivam Mathur 3dfaca4ee1 Rename nightly_versions -> php_builder_versions 2025-11-26 22:22:06 +05:30
Shivam Mathur 44454db4f0 Fix check_lists in ppa.sh 2025-11-26 20:43:34 +05:30
Shivam Mathur 9d7558f1af Revert to using php-builder for PHP 8.3 and above for self-hosted 2025-11-26 20:05:44 +05:30
Shivam Mathur 5daa53ffa1 Fix shellcheck in darwin.sh 2025-11-26 11:29:16 +05:30
Shivam Mathur e8f032a051 Fix linking 2025-11-26 11:29:07 +05:30
Shivam Mathur 4abbbd6075 Fix build pdo_oci on macos for PHP 7.0
Minor shellcheck fix
2025-11-26 09:36:49 +05:30
Shivam Mathur 8dcd37f7d4 Improve macos php setup
Run dependency install as a seperate command.

Remove chown command as it is not required anymore it seems

Fix add_brew_tap call
2025-11-26 07:42:08 +05:30
Shivam Mathur a909b43232 Fix gearman versions 2025-11-26 06:25:09 +05:30
Shivam Mathur 3961404d06 Fix phpize patch on arm64 macos [skip ci] 2025-11-25 16:35:22 +05:30
Shivam Mathur 43e4e008cc Add support for ibm extensions [skip ci] 2025-11-25 16:23:49 +05:30
Shivam Mathur b010fa7c8f Fix typo in geos patch [skip ci] 2025-11-25 15:46:15 +05:30
Shivam Mathur cc78f4c7f9 Improve library support when building from source 2025-11-24 05:11:08 +05:30
Shivam Mathur 7662a9b5f4 Update common patches 2025-11-24 04:18:57 +05:30
Shivam Mathur 865d4645a1 Fallback to upgrading macos formula 2025-11-21 03:55:33 +05:30
Shivam Mathur 248e3ca37a Mark PHP 8.5 as stable 2025-11-21 02:36:26 +05:30