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

Commit 2d5250a

Browse files
authored
Merge pull request #301 from nightpool/8.4.255
Update to 8.4.255
2 parents fcf04ce + ffc7bb0 commit 2d5250a

8 files changed

Lines changed: 50 additions & 49 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ lib/libv8/VERSION
1515
/release/**/.scaleway
1616
/vendor/.gclient
1717
/vendor/.gclient_entries
18+
/vendor/.cipd
1819
/vendor/v8/

.travis.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ rvm:
77
- 2.5
88
matrix:
99
include:
10-
- rvm: 2.6
11-
os: osx
12-
osx_image: xcode9.4.1
13-
fast_finish: true
10+
- os: osx
11+
osx_image: xcode12
12+
- os: osx
13+
osx_image: xcode11.3
14+
- os: osx
15+
osx_image: xcode10.1
1416
addons:
1517
apt:
1618
packages:
@@ -26,18 +28,22 @@ before_install:
2628
script:
2729
- git submodule update --init
2830
- bundle exec rake spec binary --trace
31+
before_deploy:
32+
- bundle exec rake osx_varients --trace
2933
deploy:
3034
provider: releases
31-
file: $(git ls-files -o pkg | head -1)
35+
file_glob: true
36+
file: pkg/*.gem
3237
api_key:
3338
secure: OMCBceg89uRnU+FIPAPbeOK2pISvV4Cz62r9iTRIGXQCOOXX8M40i77/3DmtkMtc9FEuNyAu1+CH886PL2WtZZPK4CmEU3HuqXz1a5VsCI+zcAZL1tevKvblXOVQ3MG+B/SZRC3rEzGwjk4027WtzCCGoGCLUu4TFJP05+/8XN4=
3439
skip_cleanup: true
3540
on:
3641
tags: true
37-
# condition: $TRAVIS_OS_NAME = osx
42+
rvm: '2.7' # Only deploy 1 of each platform
3843
cache:
3944
bundler: true
4045
notifications:
4146
recipients:
4247
- cowboyd@thefrontside.net
4348
- bordjukov@gmail.com
49+
- nightpool@cybre.space

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### v8.4.255.0 - 2020-07-15
2+
3+
* Update upstream v8 version to 8.4.255.0
4+
15
### v7.3.495.0 - 2020-04-14
26

37
* Update upstream v8 version to 7.3.495.0

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ platforms.
2626
* x86_64-darwin-19
2727
* x86_64-darwin-18
2828
* x86_64-darwin-17
29-
* x86_64-darwin-16
30-
* x86_64-darwin-15
31-
* x86_64-darwin-14
3229
* x86_64-linux
3330
* x86-linux
3431

Rakefile

Lines changed: 29 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require 'bundler/setup'
22
require 'rspec/core/rake_task'
33
require 'tmpdir'
4+
require 'rubygems/package'
45

56
Bundler::GemHelper.install_tasks
67
RSpec::Core::RakeTask.new :spec
@@ -20,9 +21,20 @@ DISTRIBUTIONS = [
2021
module Helpers
2122
module_function
2223
def binary_gemspec(platform = Gem::Platform.local)
23-
gemspec = eval(File.read 'libv8.gemspec')
24-
gemspec.platform = platform
25-
gemspec
24+
eval(File.read 'libv8.gemspec').tap do |gemspec|
25+
gemspec.platform = platform
26+
gemspec.extensions.clear
27+
28+
# We don't need most things for the binary
29+
gemspec.files = []
30+
gemspec.files += ['lib/libv8.rb', 'lib/libv8/version.rb']
31+
gemspec.files += ['ext/libv8/location.rb', 'ext/libv8/paths.rb']
32+
gemspec.files += ['ext/libv8/.location.yml']
33+
34+
# V8
35+
gemspec.files += Dir['vendor/v8/include/**/*.h']
36+
gemspec.files += Dir['vendor/v8/out.gn/**/*.a']
37+
end
2638
end
2739

2840
def binary_gem_name(platform = Gem::Platform.local)
@@ -38,28 +50,11 @@ end
3850
desc "build a binary gem #{Helpers.binary_gem_name}"
3951
task :binary => :compile do
4052
gemspec = Helpers.binary_gemspec
41-
gemspec.extensions.clear
42-
43-
# We don't need most things for the binary
44-
gemspec.files = []
45-
gemspec.files += ['lib/libv8.rb', 'lib/libv8/version.rb']
46-
gemspec.files += ['ext/libv8/location.rb', 'ext/libv8/paths.rb']
47-
gemspec.files += ['ext/libv8/.location.yml']
48-
49-
# V8
50-
gemspec.files += Dir['vendor/v8/include/**/*.h']
51-
gemspec.files += Dir['vendor/v8/out.gn/**/*.a']
5253

5354
FileUtils.chmod 0644, gemspec.files
5455
FileUtils.mkdir_p 'pkg'
5556

56-
package = if Gem::VERSION < '2.0.0'
57-
Gem::Builder.new(gemspec).build
58-
else
59-
require 'rubygems/package'
60-
Gem::Package.build gemspec
61-
end
62-
57+
package = Gem::Package.build gemspec
6358
FileUtils.mv package, 'pkg'
6459
end
6560

@@ -110,22 +105,19 @@ end
110105
task :default => [:compile, :spec]
111106
task :build => [:clean]
112107

113-
task :repack, [:gemfile, :new_arch] do |t, args|
114-
dir = Dir::mktmpdir
115-
116-
begin
117-
sh "gem unpack #{args[:gemfile]} --target=#{dir}"
118-
sh "gem spec #{args[:gemfile]} --ruby > #{dir}/repack.gemspec"
119-
Dir.chdir(dir) do
120-
sh "sed -iorig 's/^ s.platform = .*$/ s.platform = \"#{args[:new_arch]}\".freeze/' repack.gemspec"
121-
Dir.chdir(Dir.glob("libv8-*/").first) do
122-
sh 'mv ../repack.gemspec ./'
123-
sh 'gem build repack.gemspec'
124-
end
125-
end
108+
desc 'Generate OSX varient platform names. Requires `compile` to already have been run.'
109+
task :osx_varients do
110+
gemspec = Helpers.binary_gemspec
111+
next unless gemspec.platform.os == 'osx'
112+
113+
%w(x86_64 universal).each do |cpu|
114+
platform = gemspec.platform.dup
115+
next unless platform.cpu != cpu
116+
117+
platform.cpu = cpu
118+
gemspec.platform = platform
126119

127-
sh "mv #{dir}/*/*.gem ./pkg/"
128-
ensure
129-
FileUtils.remove_entry_secure dir
120+
package = Gem::Package.build gemspec
121+
FileUtils.mv package, 'pkg'
130122
end
131123
end

ext/libv8/builder.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def gn_args
2323
v8_use_external_startup_data=false
2424
target_cpu="#{libv8_arch}"
2525
v8_target_cpu="#{libv8_arch}"
26-
treat_warnings_as_errors=false).join(' ')
26+
treat_warnings_as_errors=false
27+
icu_use_data_file=false).join(' ')
2728
end
2829

2930
def generate_gn_args

lib/libv8/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Libv8
2-
VERSION = "7.3.495.0"
2+
VERSION = "8.4.255.0"
33
end

vendor/depot_tools

Submodule depot_tools updated from 9c06201 to 9d9199a

0 commit comments

Comments
 (0)