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
+30-6
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,36 @@ 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).
10
10
11
+
## What's New
12
+
13
+
* Added support for multiple paths, [glob patterns](https://github.com/actions/toolkit/tree/master/packages/glob), and single file caches.
* Increased performance and improved cache sizes using `zstd` compression for Linux and macOS runners
27
+
* Allowed caching for all events with a ref. 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`
28
+
* Released the [`@actions/cache`](https://github.com/actions/toolkit/tree/master/packages/cache) npm package to allow other actions to utilize caching
29
+
* Added a best-effort cleanup step to delete the archive after extraction to reduce storage space
30
+
31
+
Refer [here](https://github.com/actions/cache/blob/v1/README.md) for previous versions
32
+
11
33
## Usage
12
34
13
35
### Pre-requisites
14
36
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
37
16
38
### Inputs
17
39
18
-
*`path` - A directory to store and save the cache
40
+
* `path` - A list of files, directories, and wildcard patterns to cache and restore. See [`@actions/glob`](https://github.com/actions/toolkit/tree/master/packages/glob) for supported patterns.
19
41
* `key` - An explicit key for restoring and saving the cache
20
42
* `restore-keys` - An ordered list of keys to use for restoring the cache if no cache hit occurred for key
21
43
@@ -46,7 +68,7 @@ jobs:
46
68
47
69
- name: Cache Primes
48
70
id: cache-primes
49
-
uses: actions/cache@v1
71
+
uses: actions/cache@v2
50
72
with:
51
73
path: prime-numbers
52
74
key: ${{ runner.os }}-primes
@@ -93,9 +115,11 @@ A cache key can include any of the contexts, functions, literals, and operators
93
115
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