Skip to content

Commit 7ccf275

Browse files
author
blaze27444
authored
Add caching step to GitHub Actions workflow
1 parent 0b96bb5 commit 7ccf275

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
- name: Cache
2+
uses: actions/[email protected]
3+
with:
4+
# A list of files, directories, and wildcard patterns to cache and restore
5+
path:
6+
# An explicit key for restoring and saving the cache
7+
key:
8+
# An ordered multiline string listing the prefix-matched keys, that are used for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case.
9+
restore-keys: # optional
10+
# The chunk size used to split up large files during upload, in bytes
11+
upload-chunk-size: # optional
12+
# An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms
13+
enableCrossOsArchive: # optional, default is false
14+
# Fail the workflow if cache entry is not found
15+
fail-on-cache-miss: # optional, default is false
16+
# Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache
17+
lookup-only: # optional, default is false
18+
# Run the post step to save the cache even if another step before fails
19+
save-always: # optional, default is false
20+

0 commit comments

Comments
 (0)