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

Windows: Install rubyinstaller-head version with Devkit #198

Closed
wants to merge 2 commits into from

Conversation

larskanis
Copy link
Contributor

This is another attempt to install UCRT tools. It downloads rubyinstaller-devkit-head-x64.exe and installs ruby with all bundled MSYS2 and UCRT64 tools. The rest is equal to #197.

This is a very simple way to get the UCRT64 environment running, but since it installs not just UCRT64 tools but also MSYS64, it takes between 40 to 50 seconds for Ruby+MSYS2.

See here in action: https://github.com/larskanis/setup-ruby/runs/2976045933?check_suite_focus=true#step:3:13

MSP-Greg and others added 2 commits June 28, 2021 07:24
…n of ruby-head

The Devkit version bundles all important MSYS2 tools for the UCRT environment.
@eregon
Copy link
Member

eregon commented Jul 4, 2021

I like this approach because it's fairly simple, and probably closer to what typical Ruby users on Windows would do (i.e., I guess most download rubyinstaller with DevKit).
If the GH Windows images don't have enough, then installing the DevKit too makes sense to me.

since it installs not just UCRT64 tools but also MSYS64

Is that required, or something part of the archive/exe but we don't need it / redundant with what's on the GH Windows images?

@larskanis
Copy link
Contributor Author

@eregon MSYS2 and MINGW/UCRT aren't separate components so far - that's why more files are installed than necessary. But it's simple to make them distinct components and install only the missing part. I'll try it out.

@larskanis
Copy link
Contributor Author

I tried to add an option to rubyinstaller to install only MINGW/UCRT tools and re-use MSYS2 from another path, but MSYS2 is fixated about the path of MINGW tools. Working with links between MSYS2 and MINGW makes things too complicated for being used only in the CI environment. On the other hand installing the whole RubyInstaller with Devkit takes more than twice the time of extracing just the necessary files from 7z. So I think we should proceed with the mechanism described by @MSP-Greg in #194 (comment) .

@larskanis larskanis closed this Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants