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 to GitHub Actions workflows #179

Merged
merged 2 commits into from
Jun 13, 2024
Merged

Conversation

tianyizheng02
Copy link
Contributor

Exactly what the title says, see https://github.com/marketplace/actions/cache

Assuming this works, this could significantly cut down on the runtime of our workflows by caching our dependencies

@tianyizheng02
Copy link
Contributor Author

Workflow runtime appears to have gone down by about half because of caching. First workflow run took 47 secs (since everything had to be cached for the first time), while the second run only took 27 secs. The first workflow took 35 secs to install all dependencies while the second took 17 secs.

@tianyizheng02 tianyizheng02 marked this pull request as ready for review June 12, 2024 10:34
@tianyizheng02 tianyizheng02 requested a review from nij-patel June 12, 2024 10:34
Copy link
Member

@nij-patel nij-patel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg2m

@nij-patel nij-patel merged commit 22672a4 into dev Jun 13, 2024
1 check passed
@nij-patel nij-patel deleted the add-gh-actions-cache branch June 13, 2024 00:38
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