mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-12-24 22:06:53 +00:00
add compression-level inputs
This commit is contained in:
parent
9255dc7a25
commit
6018dbe2dc
15 changed files with 916 additions and 583 deletions
|
|
@ -9,6 +9,7 @@ The save action saves a cache. It works similarly to the `cache` action except t
|
|||
* `key` - An explicit key for a cache entry. See [creating a cache key](../README.md#creating-a-cache-key).
|
||||
* `path` - A list of files, directories, and wildcard patterns to cache. See [`@actions/glob`](https://github.com/actions/toolkit/tree/main/packages/glob) for supported patterns.
|
||||
* `upload-chunk-size` - The chunk size used to split up large files during upload, in bytes
|
||||
* `compression-level` - Compression level to use when creating cache archives. Use `0` for no compression and `9` for maximum compression. Defaults to the compression tool's standard level when unset.
|
||||
|
||||
### Outputs
|
||||
|
||||
|
|
@ -16,7 +17,6 @@ This action has no outputs.
|
|||
|
||||
## Use cases
|
||||
|
||||
|
||||
### Only save cache
|
||||
|
||||
If you are using separate jobs for generating common artifacts and sharing them across jobs, this action will take care of your cache saving needs.
|
||||
|
|
@ -54,6 +54,7 @@ with:
|
|||
```
|
||||
|
||||
#### Case 1 - Where a user would want to reuse the key as it is
|
||||
|
||||
```yaml
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@ inputs:
|
|||
upload-chunk-size:
|
||||
description: 'The chunk size used to split up large files during upload, in bytes'
|
||||
required: false
|
||||
compression-level:
|
||||
description: 'Compression level used when creating cache archives. Set 0 for no compression and 9 for maximum compression. Defaults to the compression tool defaults when unset'
|
||||
required: false
|
||||
enableCrossOsArchive:
|
||||
description: 'An optional boolean when enabled, allows windows runners to save caches that can be restored on other platforms'
|
||||
default: 'false'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue