Skip to content

Add cache-mode option to control cache usage - #268

Closed
alsutton wants to merge 5 commits into
actions:mainfrom
snappautomotive:read-only-cache
Closed

alsutton wants to merge 5 commits into
actions:mainfrom
snappautomotive:read-only-cache

Conversation

@alsutton

@alsutton alsutton commented Dec 21, 2021 •

Copy link
Copy Markdown

Description:
Introduces the optional cache-mode input, which allows workflows to have read-only and write-only caches, as well as
the default read-write caches.

This can reduce workflow runtime for situations, such as PRs, where the build artifacts may be disposable and of little use to other workflow runs, because PRs on the main branch can create the cache (using write or both mode), and PRs can build using that cache without polluting it with PR revision specific build output (using read mode)

Related issue:
#267

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

alsutton and others added 5 commits December 21, 2021 13:04
This can reduce workflow runtime for situations, such as PRs, where
the build artifacts may be disposable and of little use to other workflow runs.
@alsutton alsutton changed the title Read only cache Add cache-mode option to control cache usage Dec 23, 2021
@dmitry-shibanov

Copy link
Copy Markdown
Contributor

I'm going to close the pull request because the initial issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants