- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 293
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 ridk option to disable ridk env variables #562
Conversation
Question - Something similar I've thought about would be an input like It would add all the ENV settings needed for an mswin build, and also install the pre-compiled MSFT/vpkg archive. Several ruby org 'extension' repos are using the same logic when they run CI with EDIT: we could also add |
I'm not interested in setting up environment variables for mswin build using |
Well, it would seem that a discussion with @eregon might be a good idea.
Not sure what you mean. Do you only want |
Exactly. I want to write: - uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler: none
ridk: none # or win_platform: none and let the action execute only "Modifying Path" (and "Print Ruby version"). For our use case, we want no other environment variables. We currently hard-code |
I believe PR #563 adds the functionality you've described. See https://github.com/MSP-Greg/setup-ruby/actions/runs/7550784437/job/20556972770#step:3:17 |
That looks good. Thank you for working on that. Could you merge and/or release that one? |
You're welcome. As you know, As it is now, it works well for 'normal' CI, where the Ruby that's being installed/activated has the build tools needed to compile extension code for itself (eg Nokogiri, Puma, Ruby bundled extension gems, etc). But, if one wants to build Ruby, one has to install a Ruby that matches the one being built, which is the problem you're having. JFYI, ruby-loco uses
I don't have commit rights. I'm sure @eregon can review it soon. |
Does it make sense to pick a subset of those in practice? Maybe something like |
We need a proper review for PRs to setup-ruby (e.g. no direct push), because e.g. any input added can basically never be removed without bumping the major version and that's a high cost. |
The code to allow one or the code to allow all is not much different. But, it will take time I don't have right now. So, just setup
It's not quite that simple. The Windows files installed here can be categorized as 'bash tools', 'build tools/compilers' and 'packages'. 'bash tools' are needed/used by all Windows Ruby platforms (
|
I tried to use
ruby/setup-ruby
to set upPATH
in mswin build onruby/ruby
ruby/ruby#9566, but ridk environment variables added by it seem to break the build:Since only
PATH
is needed for the mswin build and adding ridk environment variables only breaks it, I'd like to add an option to disable those environment variables. This PR proposes to add it asridk: none
.