Skip to content

Commit

Permalink
add rake task descriptions for gem-building tasks
Browse files Browse the repository at this point in the history
and generate gem:windows and gem:linux multitasks using platform regexes
  • Loading branch information
flavorjones committed Feb 2, 2020
1 parent b8ce169 commit 2b1d71c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ namespace "gem" do
CROSS_RUBIES.map(&:platform).uniq.each do |plat|
desc "build native fat binary gems for windows and linux"
multitask "native" => plat

desc "build native gem for #{plat} platform"
task plat do
RakeCompilerDock.sh <<-EOT, platform: plat
gem install bundler &&
Expand All @@ -391,7 +393,11 @@ namespace "gem" do
end
end

multitask "windows" => ["x86-mingw32", "x64-mingw32"]
desc "build native fat binary gems for windows"
multitask "windows" => CROSS_RUBIES.map(&:platform).uniq.grep(WINDOWS_PLATFORM_REGEX)

desc "build native fat binary gems for linux"
multitask "linux" => CROSS_RUBIES.map(&:platform).uniq.grep(LINUX_PLATFORM_REGEX)

desc "build a jruby gem with docker"
task "jruby" do
Expand Down

0 comments on commit 2b1d71c

Please sign in to comment.