From 2530c73d449961fd7ab61d6f3d38c8dddd36e517 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Thu, 28 Oct 2021 12:39:39 -0400 Subject: [PATCH] ruby: support "arm64-darwin" platform native gem (#25992) Related to: - #25755 - #25794 --- Rakefile | 4 ++-- third_party/rake-compiler-dock/rake_arm64-darwin/Dockerfile | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 third_party/rake-compiler-dock/rake_arm64-darwin/Dockerfile diff --git a/Rakefile b/Rakefile index 5aaafd83c1e..437942cb614 100755 --- a/Rakefile +++ b/Rakefile @@ -30,7 +30,7 @@ Rake::ExtensionTask.new('grpc_c', spec) do |ext| ext.cross_platform = [ 'x86-mingw32', 'x64-mingw32', 'x86_64-linux', 'x86-linux', - 'x86_64-darwin', + 'x86_64-darwin', 'arm64-darwin', 'universal-darwin' ] ext.cross_compiling do |spec| @@ -144,7 +144,7 @@ task 'gem:native' do # Truncate grpc_c.*.ruby files because they're for Windows only. File.truncate('grpc_c.32.ruby', 0) File.truncate('grpc_c.64.ruby', 0) - ['x86_64-linux', 'x86-linux', 'x86_64-darwin'].each do |plat| + ['x86_64-linux', 'x86-linux', 'x86_64-darwin', 'arm64-darwin'].each do |plat| run_rake_compiler(plat, <<~EOT) gem update --system --no-document && \ bundle && \ diff --git a/third_party/rake-compiler-dock/rake_arm64-darwin/Dockerfile b/third_party/rake-compiler-dock/rake_arm64-darwin/Dockerfile new file mode 100644 index 00000000000..e55fe065dd0 --- /dev/null +++ b/third_party/rake-compiler-dock/rake_arm64-darwin/Dockerfile @@ -0,0 +1 @@ +FROM larskanis/rake-compiler-dock-mri-arm64-darwin:1.1.0