Skip to content

Commit 99c57e9

Browse files
larskanissodabrew
authored andcommitted
Add rake-compiler-dock for building Windows binary gems.
1 parent 3957ed9 commit 99c57e9

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
@@ -21,6 +21,7 @@ end
2121

2222
group :development do
2323
gem 'pry'
24+
gem 'rake-compiler-dock', '~> 0.4.2'
2425
end
2526

2627
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)