diff options
author | murgatroid99 <mlumish@google.com> | 2016-04-29 11:37:21 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2016-04-29 11:37:21 -0700 |
commit | f238194b25549cd97d19f8c785347e2d2f3d3c89 (patch) | |
tree | a0b4b41ae76bde10bf45dd0436c280c6711b1003 /tools/run_tests | |
parent | 3b293253d41627e3816167ef8ec3cf9bd0dcc48f (diff) |
Updated build_package_ruby to build the grpc-tools gem
Diffstat (limited to 'tools/run_tests')
-rwxr-xr-x | tools/run_tests/build_package_ruby.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/run_tests/build_package_ruby.sh b/tools/run_tests/build_package_ruby.sh index 1a5b94348d..cde05181c7 100755 --- a/tools/run_tests/build_package_ruby.sh +++ b/tools/run_tests/build_package_ruby.sh @@ -32,6 +32,8 @@ set -ex cd $(dirname $0)/../.. +base=$(pwd) + mkdir -p artifacts/ # All the ruby packages have been built in the artifact phase already @@ -41,3 +43,25 @@ cp -r $EXTERNAL_GIT_ROOT/architecture={x86,x64},language=ruby,platform={windows, # TODO: all the artifact builder configurations generate a grpc-VERSION.gem # source distribution package, and only one of them will end up # in the artifacts/ directory. They should be all equivalent though. + +for arch in {x86,x64}; do + case arch in + x64) + ruby_arch=x86_64 + ;; + *) + ruby_arch=$arch + ;; + esac + for plat in {windows,linux,macos}; do + input_dir="$EXTERNAL_GIT_ROOT/architecture=$arch,language=protoc,platform=$plat/artifacts" + output_dir="$base/src/ruby/tools/bin/${ruby_arch}-${plat}" + mkdir -p output_dir + cp $input_dir/protoc* output_dir/ + cp $input_dir/grpc_ruby_plugin* output_dir/ + done +done + +cd $base/src/ruby/tools +gem build grpc-tools.gemspec +cp ./grpc-tools*.gem $base/artifacts/ |