1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Make the binary compilation even more automated

This commit is contained in:
Petko Bordjukov 2017-07-22 01:29:43 +03:00
parent 6437880a3b
commit 2c609670d9
7 changed files with 16 additions and 7 deletions

View file

@ -7,13 +7,13 @@ RSpec::Core::RakeTask.new :spec
DISTRIBUTIONS = [
'x86_64-linux',
'x86-linux',
'x86_64-linux-musl',
'x86_64-freebsd-10',
'x86_64-freebsd-11',
'amd64-freebsd-10',
'amd64-freebsd-11',
'arm-linux',
'aarch64-linux'
# 'aarch64-linux', # Enable for V8 6
# 'x86_64-linux-musl'
]
module Helpers
@ -88,7 +88,10 @@ namespace :build do
end
desc "Build binary gems for all supported distributions"
task :binary_release => DISTRIBUTIONS.map {|distribution| "build:#{distribution}"}
task :binary_release => [:build] + DISTRIBUTIONS.map {|distribution| "build:#{distribution}"} do
sh "cd #{File.dirname(__FILE__)} && mkdir -p pkg"
sh "cd #{File.dirname(__FILE__)} && mv release/**/*.gem pkg/"
end
task :clean_submodules do
sh "git submodule --quiet foreach git reset --hard"

View file

@ -12,7 +12,7 @@ Vagrant.configure(2) do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "freebsd/FreeBSD-10.3-RELEASE"
config.vm.box = "freebsd/FreeBSD-10.3-STABLE"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
@ -61,6 +61,7 @@ Vagrant.configure(2) do |config|
config.vm.base_mac = "080027D14C66"
config.vm.provider :virtualbox do |vb|
vb.memory = "2048"
vb.cpus = 4
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]

View file

@ -12,7 +12,7 @@ Vagrant.configure(2) do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "freebsd/FreeBSD-11.0-RELEASE-p1"
config.vm.box = "freebsd/FreeBSD-11.1-RELEASE"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
@ -61,6 +61,7 @@ Vagrant.configure(2) do |config|
config.vm.base_mac = "080027D14C66"
config.vm.provider :virtualbox do |vb|
vb.memory = "2048"
vb.cpus = 4
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]

View file

@ -56,6 +56,7 @@ Vagrant.configure(2) do |config|
# information on available options.
config.vm.provider :virtualbox do |vb|
vb.memory = "2048"
vb.cpus = 4
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]

View file

@ -12,7 +12,7 @@ Vagrant.configure(2) do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "freebsd/FreeBSD-10.3-RELEASE"
config.vm.box = "freebsd/FreeBSD-10.3-STABLE"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
@ -65,6 +65,7 @@ Vagrant.configure(2) do |config|
config.vm.base_mac = "080027D14C66"
config.vm.provider :virtualbox do |vb|
vb.memory = "2048"
vb.cpus = 4
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]

View file

@ -12,7 +12,7 @@ Vagrant.configure(2) do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "freebsd/FreeBSD-11.0-RELEASE-p1"
config.vm.box = "freebsd/FreeBSD-11.1-RELEASE"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
@ -65,6 +65,7 @@ Vagrant.configure(2) do |config|
config.vm.base_mac = "080027D14C66"
config.vm.provider :virtualbox do |vb|
vb.memory = "2048"
vb.cpus = 4
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]

View file

@ -55,6 +55,7 @@ Vagrant.configure(2) do |config|
# View the documentation for the provider you are using for more
# information on available options.
config.vm.provider :virtualbox do |vb|
vb.cpus = 4
vb.memory = "2048"
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]