Skip to content

Commit 355b0d4

Browse files
Add caching step in copilot-setup-steps.yml
Add caching step to GitHub Actions workflow for improved performance. Signed-off-by: johnconstant99-dev <johnconstant99@gmail.com>
1 parent d8d22ca commit 355b0d4

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
- name: Cache
2+
uses: actions/cache@v5.0.5
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)