Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cache-mode option to control cache usage #268

Closed
wants to merge 5 commits into from

Conversation

alsutton
Copy link

@alsutton alsutton commented Dec 21, 2021

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
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.

None yet

2 participants