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 caching for nanopb #652

Merged
merged 5 commits into from
Nov 15, 2024
Merged

Add caching for nanopb #652

merged 5 commits into from
Nov 15, 2024

Conversation

tyeth
Copy link
Contributor

@tyeth tyeth commented Oct 22, 2024

Caches are based on the current ref, or a parent ref / base branch, as well as key.
When we update nanopb we'll need to update the cache key too, it's obvious as there are a few lines mentioning the version number.

This has now run once, causing a cached item to appear under the ref/pulls/this-one cache, and the second run has used that cached item for all the jobs.
Once we get it into main then one run will generate a cached item in the main cache which other things can utilise.

@tyeth tyeth marked this pull request as ready for review October 22, 2024 20:21
@tyeth tyeth requested a review from brentru October 24, 2024 09:54
@tyeth
Copy link
Contributor Author

tyeth commented Oct 24, 2024

@brentru this is ready for review

@brentru
Copy link
Member

brentru commented Oct 25, 2024

Could we first attempt to grab the direct download, and then try the cached version?

@tyeth
Copy link
Contributor Author

tyeth commented Oct 25, 2024 via email

@tyeth
Copy link
Contributor Author

tyeth commented Oct 25, 2024

@brentru should be good to go now

@brentru
Copy link
Member

brentru commented Nov 15, 2024

@tyeth LGTM at your convenience

@tyeth tyeth merged commit 353b036 into main Nov 15, 2024
39 checks passed
@tyeth tyeth deleted the add-nanopb-cache branch November 15, 2024 17:52
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