You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+61-6
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,67 @@ This action allows caching dependencies and build outputs to improve workflow ex
8
8
9
9
See ["Caching dependencies to speed up workflows"](https://help.github.com/github/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows).
* Increased perfomance and improved cache sizes using `zstd` compression
57
+
> Note this feature is off for Windows runner that are using `bsdtar` (e.g., windows-latest hosted runner) due to a bug in ziping large random files with `bsdtar`
58
+
* Allowed caching for all events with a ref
59
+
> See [events that trigger workflow](https://help.github.com/en/actions/reference/events-that-trigger-workflows) for info on which events do not have a `GITHUB_REF`
60
+
* Released the [`@actions/cache`](https://github.com/actions/toolkit/tree/master/packages/cache) npm package to allow other actions to utilize caching
61
+
* Added a best-effort cleanup step to delete the archive after extraction to reduce storage space
62
+
11
63
## Usage
12
64
13
65
### Pre-requisites
14
66
Create a workflow `.yml` file in your repositories `.github/workflows` directory. An [example workflow](#example-workflow) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
15
67
16
68
### Inputs
17
69
18
-
*`path` - A directory to store and save the cache
70
+
* `path` - Directories to store and save the cache. Supports pattern matching, multipath and single file cache
71
+
> See [`@actions/glob`](https://github.com/actions/toolkit/tree/master/packages/glob) for supported patterns.
19
72
* `key` - An explicit key for restoring and saving the cache
20
73
* `restore-keys` - An ordered list of keys to use for restoring the cache if no cache hit occurred for key
21
74
@@ -46,7 +99,7 @@ jobs:
46
99
47
100
- name: Cache Primes
48
101
id: cache-primes
49
-
uses: actions/cache@v1
102
+
uses: actions/cache@v2
50
103
with:
51
104
path: prime-numbers
52
105
key: ${{ runner.os }}-primes
@@ -93,9 +146,11 @@ A cache key can include any of the contexts, functions, literals, and operators
93
146
For example, using the [`hashFiles`](https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#hashfiles) function allows you to create a new cache when dependencies change.
0 commit comments