Skip to content

Commit 5c8a62e

Browse files
committed
Add rake-compiler-dock for building Windows binary gems.
1 parent 1d31751 commit 5c8a62e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ gemspec name: 'concurrent-ruby-edge'
66
group :development do
77
gem 'rake', '~> 10.4.2'
88
gem 'rake-compiler', '~> 0.9.5'
9+
gem 'rake-compiler-dock', '~> 0.4.0'
910
gem 'gem-compiler', '~> 0.3.0'
1011
gem 'benchmark-ips', '~> 2.2.0'
1112

Rakefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,15 @@ namespace :build do
135135
sh 'mv *.gem pkg/'
136136
end
137137
end
138+
139+
desc "Build the windows binary gems per rake-compiler-dock"
140+
task :windows do
141+
require 'rake_compiler_dock'
142+
RakeCompilerDock.sh <<-EOT
143+
bundle --without="development testing" &&
144+
rake cross native gem RUBY_CC_VERSION=1.9.3:2.0.0:2.1.6:2.2.2
145+
EOT
146+
end
138147
end
139148

140149
if Concurrent.on_jruby?

0 commit comments

Comments
 (0)