mirror of https://github.com/actions/cache.git
Update the ruby caching example
The ruby version should be a part of the cache hash. Gems built for one version of ruby may not work with a different version of ruby. Making the ruby version a part of the cache key will bust the cache when the ruby version changes. Most ruby projects have a `.ruby-version` file that can be hashed into the cache key. Use the `--deployment` option with `bundle install` to properly set `vendor/bundle` as the gem path, and also set other options optimized for CI deployment. https://bundler.io/v2.0/man/bundle-install.1.html#DEPLOYMENT-MODEpull/289/head
parent
9ceee97d99
commit
431ddd542e
Loading…
Reference in New Issue