Skip to content

Commit bd9b49b

Browse files
author
Vipul
authored
Merge branch 'main' into bazel-example
2 parents 8f2671f + ea05037 commit bd9b49b

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
This action allows caching dependencies and build outputs to improve workflow execution time.
44

5-
Two other actions are available in addition to the primary `cache` action:
6-
7-
* [Restore action](./restore/README.md)
8-
9-
* [Save action](./save/README.md)
5+
>Two other actions are available in addition to the primary `cache` action:
6+
>* [Restore action](./restore/README.md)
7+
>* [Save action](./save/README.md)
108
119
[![Tests](https://github.com/actions/cache/actions/workflows/workflow.yml/badge.svg)](https://github.com/actions/cache/actions/workflows/workflow.yml)
1210

tips-and-workarounds.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ Reusing cache across feature branches is not allowed today to provide cache [iso
3030
3131
From `v3.2.3` cache is cross-os compatible when `enableCrossOsArchive` input is passed as true. This means that a cache created on `ubuntu-latest` or `mac-latest` can be used by `windows-latest` and vice versa, provided the workflow which runs on `windows-latest` have input `enableCrossOsArchive` as true. This is useful to cache dependencies which are independent of the runner platform. This will help reduce the consumption of the cache quota and help build for multiple platforms from the same cache. Things to keep in mind while using this feature:
3232

33-
- Only cache those files which are compatible across OSs.
34-
- Caching symlinks might cause issues while restoration as they work differently on different OSs.
35-
- Only cache files from within your github workspace directory.
36-
- Avoid using directory pointers such as `${{ github.workspace }}` or `~` (home) which eventually evaluate to an absolute path and will not match across OSs.
33+
- Only cache files that are compatible across OSs.
34+
- Caching symlinks might cause issues while restoring them as they behave differently on different OSs.
35+
- Be mindful when caching files from outside your github workspace directory as the directory is located at different places across OS.
36+
- Avoid using directory pointers such as `${{ github.workspace }}` or `~` (home) which eventually evaluate to an absolute path that does not match across OSs.
3737

3838
## Force deletion of caches overriding default cache eviction policy
3939

0 commit comments

Comments
 (0)