Skip to content

Save CI caches only from main and allow 30 minutes for macOS tests - #424

Merged
mattt merged 1 commit into
mainfrom
mattt/fix-ci-build-cache
Nov 18, 2026
Merged

mattt merged 1 commit into
mainfrom
mattt/fix-ci-build-cache

Conversation

@mattt

@mattt mattt commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

This PR fixes macOS test jobs that reach their 20-minute limit in the Build step. A full CI run saves about 9.2 GB of caches, and the repository limit is 10 GB. Each pull request's run saves its own set under its merge ref, which evicts main's caches. Other pull requests can't read that set, so they start with no cache, and a build without a cache takes 10 to more than 20 minutes on macOS 26.

This PR splits each actions/cache step into actions/cache/restore and actions/cache/save. Every run restores. Only pushes to main save, and only after Build when the exact key missed, so a test failure doesn't discard the build. It also raises the macOS test job's limit to 30 minutes, because a build without a cache can't fit in 20 minutes. A pull request no longer keeps a cache between its own pushes; it restores from main each time.

@mattt
mattt merged commit d390486 into main Nov 18, 2026
14 checks passed
@mattt
mattt deleted the mattt/fix-ci-build-cache branch November 18, 2026 01:16
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.

1 participant