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

Ability to Pass Flags to Ruby Build (Jemalloc Support)

ashwinv11 opened this issue · comments

Hello!

I was wondering if there were any way to pass RUBY_CONFIGURE_OPTS similar to how ruby-build works:

RUBY_CONFIGURE_OPTS="--with-jemalloc=$(brew --prefix jemalloc)" asdf install ruby 3.2.2. From what I understand, this might be a limitation due to what release types are available in the ruby-builder repo?

Could we consider adding the ability to publish builds for Ubuntu with jemalloc?

Thank you!

Could we consider adding the ability to publish builds for Ubuntu with jemalloc?

Seeing #505 (comment) this is probably unlikely

I think it is possible to workaround with LD_PRELOAD, see docker-library/ruby#182 for lots of comments on that and it looks like this Heroku buildpack also uses that technique.

Thanks for the context and for linking me to the other thread! Will try out the LD_PRELOAD workaround and report back 👍🏾