Skip to content

Commit b7195ce

Browse files
larskanissodabrew
authored andcommitted
Add rake-compiler-dock for building Windows binary gems.
1 parent f8c2402 commit b7195ce

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
@@ -14,6 +14,7 @@ end
1414
group :development do
1515
gem 'pry'
1616
gem 'eventmachine' unless RUBY_PLATFORM =~ /mswin|mingw/
17+
gem 'rake-compiler-dock', '~> 0.4.2'
1718
end
1819

1920
platforms :rbx do

tasks/compile.rake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,12 @@ else
8686
Rake::Task['cross'].prerequisites.unshift 'vendor:mysql:cross'
8787
end
8888
end
89+
90+
desc "Build the windows binary gems per rake-compiler-dock"
91+
task 'gem:windows' do
92+
require 'rake_compiler_dock'
93+
RakeCompilerDock.sh <<-EOT
94+
bundle install "--without=test benchmarks development rbx" &&
95+
rake cross native gem
96+
EOT
97+
end

0 commit comments

Comments
 (0)