Skip to content

Commit

Permalink
docs: Add behavior section of GHA
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>

Add reason

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Jacob Lee authored and sylvestre committed Jan 9, 2023
1 parent a47fafc commit 1e573e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/GHA.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ This cache type will needs token like `ACTIONS_CACHE_URL` and `ACTIONS_RUNTIME_T
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
```
## Behavior
Sccache has a need to access and create caches separately. So, in contrast to the [`@actions/cache`](https://github.com/actions/cache) action, which saves a single large archive per cache key, `sccache` with GHA cache storage saves each cache entry separately.

So while visiting `Caches` Under Github's Action tab, you will see a lot of cache entries like the following:

![image](https://user-images.githubusercontent.com/5351546/211239569-11ca3e41-8906-4420-b69f-7fc3d1af20e5.png)

0 comments on commit 1e573e9

Please sign in to comment.