Skip to content

Add ruby-2.7 to build process of binary gems for Windows and Linux#22039

Merged
veblush merged 1 commit intogrpc:masterfrom
larskanis:binary-ruby-2.7
Feb 24, 2020
Merged

Add ruby-2.7 to build process of binary gems for Windows and Linux#22039
veblush merged 1 commit intogrpc:masterfrom
larskanis:binary-ruby-2.7

Conversation

@larskanis
Copy link
Copy Markdown
Contributor

This is a alternative PR to #22014 . I didn't notice it until I opened this PR. Still I think this is the better way since it removes now needless Dockerfiles. It also fixes a circular dependency that happens when re-running the build.

With rake-compiler-dock-1.0.1 there's no need to use a derived Dockerfile. The standard RCD image can be used instead. The only issue is with conflicting declarations of gettimeofday(), which can be easily worked around by patching win32.h before the build.

I manually tested installing and loading the gem in irb on x86-mingw32, x64-mingw32 and x86_64-linux.

Fixes #21514

@veblush , @nicolasnoble

With rake-compiler-dock-1.0.1 there's no need to use a derived Dockerfile.
The standard RCD image can be used instead.
The only issue is with conflicting declarations of gettimeofday(), which can be easily worked around by patching win32.h before the build.

Fixes grpc#21514
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Feb 16, 2020

CLA Check
The committers are authorized under a signed CLA.

@larskanis
Copy link
Copy Markdown
Contributor Author

I just signed the CLA and hope it works.

@veblush veblush added lang/ruby release notes: no Indicates if PR should not be in release notes area/build labels Feb 17, 2020
@veblush
Copy link
Copy Markdown
Contributor

veblush commented Feb 17, 2020

Great! Thank you for the PR. I'll run the test for verifying artifacts.

Distribute test

grpc_build_artifacts_multiplatform: passed for ruby and ruby gem files are built and stored in dir

  • grpc-1.27.0.dev-universal-darwin.gem
  • grpc-1.27.0.dev-x64-mingw32.gem
  • grpc-1.27.0.dev-x86-linux.gem
  • grpc-1.27.0.dev-x86-mingw32.gem
  • grpc-1.27.0.dev-x86_64-linux.gem
  • grpc-1.27.0dev.tgz
  • grpc-tools-1.27.0.dev.gem

@apolcyn apolcyn added release notes: yes Indicates if PR needs to be in release notes and removed release notes: no Indicates if PR should not be in release notes labels Feb 18, 2020
@veblush
Copy link
Copy Markdown
Contributor

veblush commented Feb 19, 2020

Waiting for the one more approval to get it merged.

Copy link
Copy Markdown
Contributor

@jtattermusch jtattermusch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build lang/ruby release notes: yes Indicates if PR needs to be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Ruby 2.7

6 participants