Skip to content
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

Add setup-ruby support #105

Merged
merged 2 commits into from
Apr 29, 2022
Merged

Add setup-ruby support #105

merged 2 commits into from
Apr 29, 2022

Conversation

flolom
Copy link
Member

@flolom flolom commented Apr 28, 2022

As described by the documentation of actions/cache, it is strongly recommended to use the setup-ruby action to have a working cache for ruby/bundler.

This is something that I noticed on projects that uses ruby (and fastlane) : most of the time the cache is not hit and bundler is downloading and installing the dependencies again and again and again.

Because setup-ruby also downloads and install a precompiled ruby runtime, I have removed the ruby runtime from the docker image, because it will be unused. This is breaking change and can be discussed : maybe we should keep it for developers that will not use the setup-ruby action ?
EDIT : Let's keep the ruby runtime for now (retrocompatibility issues)

From experience setup-ruby is pretty fast : it takes <10sec to download and install the ruby runtime and restore the cache

@flolom flolom requested a review from ferrandp April 28, 2022 09:20
@flolom flolom force-pushed the feature/add-setup-ruby-support branch from 9bebbb7 to 8dd9553 Compare April 28, 2022 09:49
@flolom flolom force-pushed the feature/add-setup-ruby-support branch from 8dd9553 to 0e3665d Compare April 29, 2022 07:25
@flolom flolom merged commit 96091f6 into develop Apr 29, 2022
@flolom flolom deleted the feature/add-setup-ruby-support branch April 29, 2022 08:28
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.

None yet

2 participants