Skip to content

Commit d739255

Browse files
authored
Merge pull request #788 from larskanis/update-windows-and-jruby-build
Update rake-compiler-dock to 0.7.0
2 parents 5e18636 + 9757a5a commit d739255

File tree

3 files changed

+6
-21
lines changed

3 files changed

+6
-21
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gem 'concurrent-ruby-ext', Concurrent::VERSION, options.merge(platform: :mri)
1212
group :development do
1313
gem 'rake', '~> 12.0'
1414
gem 'rake-compiler', '~> 1.0'
15-
gem 'rake-compiler-dock', '~> 0.6.0'
15+
gem 'rake-compiler-dock', '~> 0.7.0'
1616
gem 'pry', '~> 0.11', platforms: :mri
1717
end
1818

Rakefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ namespace :repackage do
8080
# store gems in vendor cache for docker
8181
sh 'bundle package'
8282

83-
# needed only if the jar is built outside of docker
84-
Rake::Task['lib/concurrent/concurrent_ruby.jar'].invoke
85-
RakeCompilerDock.exec 'support/cross_building.sh'
83+
# build only the jar file not the whole gem for java platform, the jar is part the concurrent-ruby-x.y.z.gem
84+
RakeCompilerDock.sh 'bundle install --local && bundle exec rake lib/concurrent/concurrent_ruby.jar --trace', rubyvm: :jruby
85+
# build all gem files
86+
RakeCompilerDock.sh 'bundle install --local && bundle exec rake cross native package --trace'
8687
end
8788
end
8889
end
@@ -275,7 +276,7 @@ namespace :release do
275276
end
276277

277278
desc '* build all *.gem files necessary for release'
278-
task :build => 'repackage:all'
279+
task :build => [:clobber, 'repackage:all']
279280

280281
desc '* test actual installed gems instead of cloned repository on MRI and JRuby'
281282
task :test do

support/cross_building.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)