ruby: support "arm64-darwin" platform native gem (#25992)

Related to:

- #25755
- #25794
reviewable/pr27851/r1^2
Mike Dalessio 3 years ago committed by GitHub
parent dcabe420cc
commit 2530c73d44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Rakefile
  2. 1
      third_party/rake-compiler-dock/rake_arm64-darwin/Dockerfile

@ -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 && \

@ -0,0 +1 @@
FROM larskanis/rake-compiler-dock-mri-arm64-darwin:1.1.0
Loading…
Cancel
Save