mirror of
https://github.com/actions/cache.git
synced 2025-06-18 23:02:57 -06:00
Add docs for cross os cache compatibility
This commit is contained in:
parent
d1507cccba
commit
9ce89c57c5
2 changed files with 8 additions and 1 deletions
|
@ -62,4 +62,10 @@ jobs:
|
|||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
```
|
||||
</details>
|
||||
</details>
|
||||
|
||||
## Cross OS cache
|
||||
From `v3.2.1` cache is cross os compatible. This means that a cache created on `ubuntu-latest` can be used by `windows-latest` and vice versa. This is useful when you want to cache dependencies which is available on different the OSs. This will help reduce the consumption of the cache quota. Things to keep in mind:
|
||||
- Only cache those files which are compatible across OSs.
|
||||
- Don't cache symlinks as they work differently on different OSs so would cause issues during cache restore.
|
||||
- Put runner OS in the cache key if that cache is not ment to be used across OSs.
|
Loading…
Add table
Add a link
Reference in a new issue