Skip to content

ci: improve caching for GitHub Actions #2245

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

Merged
merged 1 commit into from
Nov 10, 2021
Merged

Conversation

aykevl
Copy link
Member

@aykevl aykevl commented Nov 10, 2021

Previously the cache would be stale for every new branch.
With this change, PRs use the cache from the base branch and therefore don't need to rebuild LLVM from scratch.

@aykevl aykevl force-pushed the test-github-actions-caching branch 3 times, most recently from d73f031 to 4d07178 Compare November 10, 2021 17:22
Previously the cache would be stale for every new branch.
With this change, PRs use the cache from the base branch and therefore
don't need to rebuild LLVM from scratch.
@aykevl aykevl force-pushed the test-github-actions-caching branch from 4d07178 to 3a3e03d Compare November 10, 2021 17:27
@aykevl aykevl changed the title Testing GitHub actions ci: improve caching for GitHub Actions Nov 10, 2021
@aykevl aykevl marked this pull request as ready for review November 10, 2021 17:32
@aykevl
Copy link
Member Author

aykevl commented Nov 10, 2021

This seems to work: https://github.com/tinygo-org/tinygo/runs/4168639924 did use the cache even though the branch doesn't have any caches yet (I cancelled them all before they could complete).

@deadprogram
Copy link
Member

That seems promising! I will try that same syntax out in the #2221 branch.

@deadprogram
Copy link
Member

Also, now merging.

@deadprogram deadprogram merged commit 7e68980 into dev Nov 10, 2021
@deadprogram deadprogram deleted the test-github-actions-caching branch November 10, 2021 17:55
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