Skip to content

Commit

Permalink
Merge pull request #1850 from larskanis/update-windows-build-for-ruby…
Browse files Browse the repository at this point in the history
…-2.6

Update Windows cross build for ruby-2.6
  • Loading branch information
flavorjones committed Dec 28, 2018
2 parents 3778761 + e18769a commit e561fc3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
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

0 comments on commit e561fc3

Please sign in to comment.