Skip to content

Fix caching for unity builds - #5642

Merged
joshua-spacetime merged 1 commit into
masterfrom
joshua/ci/fix-unity-caching
Aug 1, 2026
Merged

Fix caching for unity builds#5642
joshua-spacetime merged 1 commit into
masterfrom
joshua/ci/fix-unity-caching

Conversation

@joshua-spacetime

@joshua-spacetime joshua-spacetime commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Description of Changes

This is part of the work to break up #5612 into smaller reviewable chunks.

Before this change, the cache key for the unity library was Unity-${{ github.head_ref }}. This meant every single PR experienced a cache miss, whether or not it changed any unity dependencies, and would subsequently do a full unity build and upload a new multi-GB entry to the actions cache. The actions cache isn't that big, so this was responsible for a huge amount of cache churn which in turn slowed all other builds down.

Now the cache key incorporates the proper dependencies, and the cache is only written to on pushes to master.

API and ABI breaking changes

None

Expected complexity level and risk

1

Testing

N/A

@jdetter jdetter 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.

Seems fine, not tested manually by me

Comment thread .github/workflows/ci.yml
@joshua-spacetime
joshua-spacetime added this pull request to the merge queue Aug 1, 2026
Merged via the queue into master with commit bf85516 Aug 1, 2026
54 of 55 checks passed
@joshua-spacetime
joshua-spacetime deleted the joshua/ci/fix-unity-caching branch August 1, 2026 03:04
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