Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Windows cross build for ruby-2.6 #1850

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cross_rubies
@@ -1,3 +1,5 @@
2.6.0:i686-w64-mingw32
2.6.0:x86_64-w64-mingw32
2.5.0:i686-w64-mingw32
2.5.0:x86_64-w64-mingw32
2.4.0:i686-w64-mingw32
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -13,7 +13,7 @@ gem "hoe-git", "~>1.6", :group => [:development, :test]
gem "minitest", "~>5.8.4", :group => [:development, :test]
gem "rake", "~>12.0", :group => [:development, :test]
gem "rake-compiler", "~>1.0.3", :group => [:development, :test]
gem "rake-compiler-dock", "~>0.6.2", :group => [:development, :test]
gem "rake-compiler-dock", "~>0.7.0", :group => [:development, :test]
gem "racc", "~>1.4.14", :group => [:development, :test]
gem "rexical", "~>1.0.5", :group => [:development, :test]
gem "concourse", "~>0.15", :group => [:development, :test]
Expand Down
10 changes: 8 additions & 2 deletions Rakefile
Expand Up @@ -138,7 +138,7 @@ HOE = Hoe.spec 'nokogiri' do
["minitest", "~> 5.8.4"],
["rake", "~> 12.0"],
["rake-compiler", "~> 1.0.3"],
["rake-compiler-dock", "~> 0.6.2"],
["rake-compiler-dock", "~> 0.7.0"],
["racc", "~> 1.4.14"],
["rexical", "~> 1.0.5"],
["concourse", "~> 0.15"],
Expand Down Expand Up @@ -316,10 +316,16 @@ task :cross do
end
end

desc "build a windows gem without all the ceremony."
desc "build a windows gem without all the ceremony"
task "gem:windows" do
require "rake_compiler_dock"
RakeCompilerDock.sh "bundle && rake cross native gem MAKE='nice make -j`nproc`' RUBY_CC_VERSION=#{ENV['RUBY_CC_VERSION']}"
end

desc "build a jruby gem with docker"
task "gem:jruby" do
require "rake_compiler_dock"
RakeCompilerDock.sh "bundle && rake java gem", rubyvm: 'jruby'
end

# vim: syntax=Ruby