ruby / setup-ruby

An action to download a prebuilt Ruby and add it to the PATH in 5 seconds

Home Page:https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Caching to S3 Bucket

ChrisPage-AT opened this issue · comments

I'm running into an issue where the 10gb of provided cache space by Github Actions is not sufficient, so I'm looking to use an AWS S3 bucket to store my caches. I'm able to do this very easily for docker layer caching using the cache-from and cache-to commands in buildx, and moderately easily for node_modules using actions-cache-s3. However it's stated in both the actions/cache and ruby/setup-ruby documentation that it's not as simple for ruby gems.

Is there a way to cache my gems to S3 currently that I'm unaware of, or is this a planned feature down the road? It would be incredibly helpful. Thanks!

No plan currently. I don't think it's easy to address this, we'd have to choose which one and I wouldn't be comfortable to depend on https://github.com/whywaita/actions-cache-s3/tree/v2/.

You can do it manually with actions-cache-s3 of course but yes beware of the many gotchas mentioned in the docs.