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

Build automation fixes

This commit is contained in:
Petko Bordjukov 2019-04-24 15:36:09 +03:00
parent f0c096d955
commit 77dcc0ea51
3 changed files with 6 additions and 5 deletions

View file

@ -117,9 +117,10 @@ task :repack, [:gemfile, :new_arch] do |t, args|
sh "gem unpack #{args[:gemfile]} --target=#{dir}"
sh "gem spec #{args[:gemfile]} --ruby > #{dir}/repack.gemspec"
Dir.chdir(dir) do
sh "sed -i 's/^ s.platform = .*$/ s.platform = \"#{args[:new_arch]}\".freeze/' repack.gemspec"
sh "sed -iorig 's/^ s.platform = .*$/ s.platform = \"#{args[:new_arch]}\".freeze/' repack.gemspec"
Dir.chdir(Dir.glob("libv8-*/").first) do
sh 'gem build ../repack.gemspec'
sh 'mv ../repack.gemspec ./'
sh 'gem build repack.gemspec'
end
end

View file

@ -55,7 +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.memory = "2048"
vb.memory = "4096"
vb.cpus = 4
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]

View file

@ -55,8 +55,8 @@ 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.cpus = 8
vb.memory = "4096"
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]