Skip to content

Commit

Permalink
feat: add a way of using GHA cache locally
Browse files Browse the repository at this point in the history
This is the first implementation of uploading the local cache
as a single file to a remote cache for reuse in a future build.

Right now it is only done for GHA as that was the intended scope¹,
but one could adapt this system to other remote caches.

Because of the immutability of GHACache, this commit only adds support
for re-using the cache for the same version (as defined by the user
through the `SCCACHE_GHA_VERSION` environment variable).
A way of reusing incremental build within a given version or even
across versions could be devised, but it falls outside the scope of
this particular effort, and it's probably not trivial.

[1] Mozilla-Actions/sccache-action#81
  • Loading branch information
Alphare committed Apr 24, 2024
1 parent c8d5ffa commit b4d7561
Show file tree
Hide file tree
Showing 8 changed files with 200 additions and 1,164 deletions.
376 changes: 0 additions & 376 deletions .github/workflows/ci.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/close-snap.yml

This file was deleted.

Loading

0 comments on commit b4d7561

Please sign in to comment.