Skip to content

Caching

How do I cache Bundler gems?

Quick answer

Cache vendor/bundle keyed on Gemfile.lock so native extensions are compiled once.

The detail that matters

ruby/setup-ruby with bundler-cache: true is the least error-prone way to do it.

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.