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 default branch caching #112

Merged
merged 2 commits into from
Jun 1, 2023
Merged

Add default branch caching #112

merged 2 commits into from
Jun 1, 2023

Conversation

richardpringle
Copy link
Contributor

@richardpringle richardpringle commented Jun 1, 2023

While individual branch caching is useful, it still doesn't get a speed up for new PRs. The only branch that shares its caches with all other branches is the default branch. So, this PR adds cache creation on every commit that gets merged to master. This should cut build times in half for new branches.

There are still some other optimizations that we can get related to crates, but I'm not sure it's worth spending the time on that now.

Edit:
I also realized that I'm creating two caches per PR. I've changed this to only create one

@richardpringle richardpringle marked this pull request as ready for review June 1, 2023 03:13
@richardpringle richardpringle changed the title Test CI cacheing Add default branch cacheing Jun 1, 2023
@richardpringle richardpringle changed the title Add default branch cacheing Add default branch caching Jun 1, 2023
@richardpringle richardpringle merged commit ec97b1b into main Jun 1, 2023
@richardpringle richardpringle deleted the test-cache branch June 1, 2023 19:26
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