Skip to content

Add centralized setup-php-cache composite action - #71

Merged
amyevans merged 7 commits into
mainfrom
rory-ga-t1e-php-cache
Jul 9, 2026
Merged

Add centralized setup-php-cache composite action#71
amyevans merged 7 commits into
mainfrom
rory-ga-t1e-php-cache

Conversation

@roryabraham

@roryabraham roryabraham commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add setup-php-cache composite action for PHP CI runners
  • Restores bin, .cache, apt archives, and GPG key caches (with chmod prep for system paths)
  • Uses actions/cache@v6.1.0 (55cc8345863c7cc4c66a329aec7e433d2d1c52a9)

Test plan

CI only, tested in:

Centralize PHP CI cache setup with full and lite variants for Web-Expensify and Web-Secure.

Co-authored-by: Cursor <cursoragent@cursor.com>
roryabraham and others added 3 commits July 8, 2026 23:20
Align with setup-composer-cache and use the immutable v6.1.0 ref.

Co-authored-by: Cursor <cursoragent@cursor.com>
Merge the duplicate .cache cache steps and use case for full-only guards.

Co-authored-by: Cursor <cursoragent@cursor.com>
Always restore bin, .cache, apt archives, and GPG key caches.

Co-authored-by: Cursor <cursoragent@cursor.com>
@roryabraham roryabraham changed the title Centralize setup-php-cache composite action (Tier 1E) Add centralized setup-php-cache composite action Jul 9, 2026
Use single quotes for cache key strings per oxfmt YAML rules.

Co-authored-by: Cursor <cursoragent@cursor.com>
@roryabraham
roryabraham requested a review from amyevans July 9, 2026 06:53
@roryabraham
roryabraham marked this pull request as ready for review July 9, 2026 06:53
chatgpt-codex-connector[bot]

This comment was marked as resolved.

Map consumer PHP versions to Zend ABI paths and only chmod paths that
exist, so jobs can run before setup-php installs PHP.

Co-authored-by: Cursor <cursoragent@cursor.com>
@roryabraham

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

Prevent x64 and arm64 Linux jobs from restoring each other's
architecture-specific binaries and apt packages.

Co-authored-by: Cursor <cursoragent@cursor.com>
@roryabraham

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@amyevans amyevans left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amyevans
amyevans merged commit e1bbd20 into main Jul 9, 2026
6 checks passed
@amyevans
amyevans deleted the rory-ga-t1e-php-cache branch July 9, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants