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

Commit

Permalink
Merge pull request #303 from nightpool/update_osx_builds
Browse files Browse the repository at this point in the history
Update mac OS build configuration
  • Loading branch information
nightpool committed Jul 20, 2020
2 parents 2d5250a + 07705ed commit e8a9669
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Expand Up @@ -11,8 +11,6 @@ matrix:
osx_image: xcode12
- os: osx
osx_image: xcode11.3
- os: osx
osx_image: xcode10.1
addons:
apt:
packages:
Expand All @@ -39,7 +37,8 @@ deploy:
skip_cleanup: true
on:
tags: true
rvm: '2.7' # Only deploy 1 of each platform
rvm: '2.7'
osx_image: xcode12
cache:
bundler: true
notifications:
Expand Down
20 changes: 11 additions & 9 deletions Rakefile
Expand Up @@ -105,19 +105,21 @@ end
task :default => [:compile, :spec]
task :build => [:clean]

desc 'Generate OSX varient platform names. Requires `compile` to already have been run.'
desc 'Generate OSX platform builds. Although any v8 OSX compile will run on any Mac OS version down to 10.10, RubyGems requires us to submit all of the different platforms seperately. Requires `compile` to already have been run, but is seperate for Travis reasons.'
task :osx_varients do
gemspec = Helpers.binary_gemspec
next unless gemspec.platform.os == 'osx'
next unless Gem::Platform.local.os == 'darwin'

%w(x86_64 universal).each do |cpu|
platform = gemspec.platform.dup
next unless platform.cpu != cpu
[15, 16, 17, 18, 19].each do |version|
%w(x86_64 universal).each do |cpu|

platform.cpu = cpu
gemspec.platform = platform
gemspec.platform = Gem::Platform.local.tap do |platform|
platform.cpu = cpu
platform.version = version
end

package = Gem::Package.build gemspec
FileUtils.mv package, 'pkg'
package = Gem::Package.build gemspec
FileUtils.mv package, 'pkg'
end
end
end

0 comments on commit e8a9669

Please sign in to comment.