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

Allow building of cross rubies in parallel #169

Merged
merged 1 commit into from Dec 20, 2020

Conversation

larskanis
Copy link
Member

Rubies can be build like so:

  rake-compiler cross-ruby VERSION=2.7.0:2.6.0 HOST=x86_64-w64-mingw32:i686-w64-mingw32

This builds the cross product of all ":" separated ruby and host versions. To force sequential builds add option "-j1".

This attempt of parallel cross ruby builds doesn't use file locking, but rake multitask only. It is an alternative way to #162 .

larskanis added a commit to rake-compiler/rake-compiler-dock that referenced this pull request Jan 26, 2020
With the attached patch rake-compiler has builtin support for parallel build of xrubies.
See corresponding PR: rake-compiler/rake-compiler#169
Rubies can be build like so:
  rake-compiler cross-ruby VERSION=2.7.0:2.6.0 HOST=x86_64-w64-mingw32:i686-w64-mingw32

This builds the cross product of all ":" separated ruby and host versions.
To force sequential builds add option "-j1".
@larskanis
Copy link
Member Author

Year after year I prepare rake-compiler-dock for the new ruby version. So I rebased this PR to the current master. Any chance to get the parallel build patch merged? The diff is somewhat better to read when ignoring whitespaces.

@larskanis
Copy link
Member Author

Essentially the PR is about

  1. changing chdir "path" do; end to sh "cmd", chdir: "path"
  2. changing all constants that are derived from the cross ruby version to variables
  3. and making :install a multitask.

@kou kou merged commit 32ab43b into rake-compiler:master Dec 20, 2020
@kou
Copy link
Member

kou commented Dec 20, 2020

Sorry for late response...

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