Bundler/bundle not using cache in Github Actions #25350
-
With the following configuration…
Seems to hit the cache file, but not use the cache when running bundle install. It ends up taking 3+ minutes! I’m following the same instructions as here: https://github.com/actions/cache/blob/ff937cc95032836a535d249de4ce2fc52aeae834/examples.md#ruby---bundler github.com/defund12/defund12.org[do not merge] test new jekyll flow
As a live example^^ Is there a configuration I need to change to have Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @avimoondra, Thank you for being here! I forked your repo, if i manually create a catch miss in prior workflow, in next workflow, it only takes 2s for the step. weide-zhou/defund12.orgdefund12.org. Contribute to weide-zhou/defund12.org development by creating an account on GitHub. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Great this worked - had to bust the cache! Thanks @weide-zhou |
Beta Was this translation helpful? Give feedback.
Hi @avimoondra,
Thank you for being here!
In your workflow, cache hit cause bundle installation is not stored into cache. Hence, it will take 3mins to install again. You can edit Gemfile.lock and push an empty submit, change the hash value will cause a cache miss, new cache will contain your bundle installation content. Then, you will find if cache hit next time, it will reduce much of time for the step.
I forked your repo, if i manually create a catch miss in prior workflow, in next workflow, it only takes 2s for the step.
GitHubweide-zhou/defund12.org
defund12.org. Contribute to weide-zhou/defund12.org development by creating an account on GitHub.
Thanks.