Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 2c60967

Browse files
committed
Make the binary compilation even more automated
1 parent 6437880 commit 2c60967

7 files changed

Lines changed: 16 additions & 7 deletions

File tree

Rakefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ RSpec::Core::RakeTask.new :spec
77
DISTRIBUTIONS = [
88
'x86_64-linux',
99
'x86-linux',
10-
'x86_64-linux-musl',
1110
'x86_64-freebsd-10',
1211
'x86_64-freebsd-11',
1312
'amd64-freebsd-10',
1413
'amd64-freebsd-11',
1514
'arm-linux',
16-
'aarch64-linux'
15+
# 'aarch64-linux', # Enable for V8 6
16+
# 'x86_64-linux-musl'
1717
]
1818

1919
module Helpers
@@ -88,7 +88,10 @@ namespace :build do
8888
end
8989

9090
desc "Build binary gems for all supported distributions"
91-
task :binary_release => DISTRIBUTIONS.map {|distribution| "build:#{distribution}"}
91+
task :binary_release => [:build] + DISTRIBUTIONS.map {|distribution| "build:#{distribution}"} do
92+
sh "cd #{File.dirname(__FILE__)} && mkdir -p pkg"
93+
sh "cd #{File.dirname(__FILE__)} && mv release/**/*.gem pkg/"
94+
end
9295

9396
task :clean_submodules do
9497
sh "git submodule --quiet foreach git reset --hard"

release/amd64-freebsd-10/Vagrantfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Vagrant.configure(2) do |config|
1212

1313
# Every Vagrant development environment requires a box. You can search for
1414
# boxes at https://atlas.hashicorp.com/search.
15-
config.vm.box = "freebsd/FreeBSD-10.3-RELEASE"
15+
config.vm.box = "freebsd/FreeBSD-10.3-STABLE"
1616

1717
# Disable automatic box update checking. If you disable this, then
1818
# boxes will only be checked for updates when the user runs
@@ -61,6 +61,7 @@ Vagrant.configure(2) do |config|
6161
config.vm.base_mac = "080027D14C66"
6262
config.vm.provider :virtualbox do |vb|
6363
vb.memory = "2048"
64+
vb.cpus = 4
6465
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
6566
vb.customize ["modifyvm", :id, "--audio", "none"]
6667
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]

release/amd64-freebsd-11/Vagrantfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Vagrant.configure(2) do |config|
1212

1313
# Every Vagrant development environment requires a box. You can search for
1414
# boxes at https://atlas.hashicorp.com/search.
15-
config.vm.box = "freebsd/FreeBSD-11.0-RELEASE-p1"
15+
config.vm.box = "freebsd/FreeBSD-11.1-RELEASE"
1616

1717
# Disable automatic box update checking. If you disable this, then
1818
# boxes will only be checked for updates when the user runs
@@ -61,6 +61,7 @@ Vagrant.configure(2) do |config|
6161
config.vm.base_mac = "080027D14C66"
6262
config.vm.provider :virtualbox do |vb|
6363
vb.memory = "2048"
64+
vb.cpus = 4
6465
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
6566
vb.customize ["modifyvm", :id, "--audio", "none"]
6667
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]

release/x86-linux/Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Vagrant.configure(2) do |config|
5656
# information on available options.
5757
config.vm.provider :virtualbox do |vb|
5858
vb.memory = "2048"
59+
vb.cpus = 4
5960
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
6061
vb.customize ["modifyvm", :id, "--audio", "none"]
6162
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]

release/x86_64-freebsd-10/Vagrantfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Vagrant.configure(2) do |config|
1212

1313
# Every Vagrant development environment requires a box. You can search for
1414
# boxes at https://atlas.hashicorp.com/search.
15-
config.vm.box = "freebsd/FreeBSD-10.3-RELEASE"
15+
config.vm.box = "freebsd/FreeBSD-10.3-STABLE"
1616

1717
# Disable automatic box update checking. If you disable this, then
1818
# boxes will only be checked for updates when the user runs
@@ -65,6 +65,7 @@ Vagrant.configure(2) do |config|
6565
config.vm.base_mac = "080027D14C66"
6666
config.vm.provider :virtualbox do |vb|
6767
vb.memory = "2048"
68+
vb.cpus = 4
6869
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
6970
vb.customize ["modifyvm", :id, "--audio", "none"]
7071
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]

release/x86_64-freebsd-11/Vagrantfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Vagrant.configure(2) do |config|
1212

1313
# Every Vagrant development environment requires a box. You can search for
1414
# boxes at https://atlas.hashicorp.com/search.
15-
config.vm.box = "freebsd/FreeBSD-11.0-RELEASE-p1"
15+
config.vm.box = "freebsd/FreeBSD-11.1-RELEASE"
1616

1717
# Disable automatic box update checking. If you disable this, then
1818
# boxes will only be checked for updates when the user runs
@@ -65,6 +65,7 @@ Vagrant.configure(2) do |config|
6565
config.vm.base_mac = "080027D14C66"
6666
config.vm.provider :virtualbox do |vb|
6767
vb.memory = "2048"
68+
vb.cpus = 4
6869
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
6970
vb.customize ["modifyvm", :id, "--audio", "none"]
7071
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]

release/x86_64-linux/Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Vagrant.configure(2) do |config|
5555
# View the documentation for the provider you are using for more
5656
# information on available options.
5757
config.vm.provider :virtualbox do |vb|
58+
vb.cpus = 4
5859
vb.memory = "2048"
5960
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
6061
vb.customize ["modifyvm", :id, "--audio", "none"]

0 commit comments

Comments
 (0)