We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
native_gem.rake
1 parent 3c9d9e6 commit e0e73bbCopy full SHA for e0e73bb
tasks/native_gem.rake
@@ -5,10 +5,10 @@ task 'gem:windows' => ['ports:cross'] do
5
require 'rake_compiler_dock'
6
7
# make sure to install our bundle
8
- build = ['bundle']
+ sh "bundle package --all" # Avoid repeated downloads of gems by using gem files from the host.
9
10
# and finally build the native gem
11
- build << 'rake cross native gem RUBY_CC_VERSION=2.7.0:2.6.0:2.5.0:2.4.0 CFLAGS="-Wall" MAKE="make -j`nproc`"'
12
-
13
- RakeCompilerDock.sh build.join(' && ')
+ GEM_PLATFORM_HOSTS.keys.each do |plat|
+ RakeCompilerDock.sh "bundle --local && RUBY_CC_VERSION='2.7.0:2.6.0:2.5.0:2.4.0' CFLAGS='-Wall' MAKE='make -j`nproc`' rake native:#{plat} gem", platform: plat
+ end
14
end
0 commit comments