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
+9-40
Original file line number
Diff line number
Diff line change
@@ -8,67 +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 in V2
11
+
## What's New
12
12
13
-
* Added support for caching multiple paths,
13
+
* Added support for multiple paths,[glob patterns](https://github.com/actions/toolkit/tree/master/packages/glob), and single file caches.
* 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`
26
+
* 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`
60
28
* Released the [`@actions/cache`](https://github.com/actions/toolkit/tree/master/packages/cache) npm package to allow other actions to utilize caching
61
29
* Added a best-effort cleanup step to delete the archive after extraction to reduce storage space
62
30
31
+
Refer [here](https://github.com/actions/cache/blob/v1/README.md) for previous versions
32
+
63
33
## Usage
64
34
65
35
### Pre-requisites
66
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).
67
37
68
38
### Inputs
69
39
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.
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.
72
41
* `key` - An explicit key for restoring and saving the cache
73
42
* `restore-keys` - An ordered list of keys to use for restoring the cache if no cache hit occurred for key
Copy file name to clipboardexpand all lines: examples.md
+14-15
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,19 @@ Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/packa
44
44
```
45
45
46
46
Depending on the environment, huge packages might be pre-installed in the global cache folder.
47
-
If you do not want to include them, consider to move the cache folder like below.
47
+
With `actions/cache@v2` you can now exclude unwanted packages with [exclude pattern](https://github.com/actions/toolkit/tree/master/packages/glob#exclude-patterns)
>Note: This workflow does not work for projects that require files to be placed in user profile package folder
49
61
```yaml
50
62
env:
@@ -58,18 +70,6 @@ steps:
58
70
${{ runner.os }}-nuget-
59
71
```
60
72
61
-
With `actions/cache@v2` you can now exclude unwanted packages with [exclude pattern](https://github.com/actions/toolkit/tree/master/packages/glob#exclude-patterns)
0 commit comments