Skip to content

Externalise cache keys to prevent unneeded invalidation - #3922

Open
pljones wants to merge 1 commit into
jamulussoftware:mainfrom
pljones:cache-keys
Open

Externalise cache keys to prevent unneeded invalidation#3922
pljones wants to merge 1 commit into
jamulussoftware:mainfrom
pljones:cache-keys

Conversation

@pljones

@pljones pljones commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

Short description of changes

I noticed whilst I've been working on autobuild.sh that every change invalidates all the caches. Because autobuild.sh itself is included in the cache key calculation. This change replaces that mechanism on macOS and Windows with am externalised list of dependencies. It adds the same mechanism to iOS, which lacked caching.

Github cache clean up will remove unused cache entries with no need to have the cache consumer included in the cache key.

(My work in progress on the Android build uses the same approach, which is where this comes from.)

Scope, guidance, testing and review by myself, coding my VSCode Github CoPilot.

CHANGELOG: Build: improve cache persistence

Context: Fixes an issue?

Caching should depend on what is being cached, rather than the cache consumer.

Does this change need documentation? What needs to be documented and how?

No.

Status of this Pull Request

Tested against the current branch in my own repository before raising the PR here.

What is missing until this pull request can be merged?

Need to do some more testing.

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

AUTOBUILD: Please build all targets

@pljones pljones self-assigned this Aug 22, 2026
@pljones pljones added tooling Changes to the automated build system AI AI generated or potentially AI generated labels Aug 22, 2026
@pljones pljones added this to Tracking Aug 22, 2026
@github-project-automation github-project-automation Bot moved this to Triage in Tracking Aug 22, 2026
@pljones pljones moved this from Triage to Waiting on Team in Tracking Aug 22, 2026
Comment thread .github/workflows/autobuild.yml Outdated
@pljones
pljones force-pushed the cache-keys branch 3 times, most recently from 81278cc to fdae3db Compare August 23, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI AI generated or potentially AI generated tooling Changes to the automated build system

Projects

Status: Waiting on Team

Development

Successfully merging this pull request may close these issues.

2 participants