diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2a5b8cd..2796243 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -382,7 +382,7 @@ jobs: - name: Set metadata id: set-metadata run: | - docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ruby -e 'puts Gem.platforms.last.to_s' | tee gem_platform + docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ruby -e 'puts Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? and p.instance_eval { @version = "musl" } }.to_s' | tee gem_platform echo "::set-output name=GEM_PLATFORM::$(cat gem_platform)" - name: Download a single artifact uses: actions/download-artifact@v2 @@ -395,7 +395,7 @@ jobs: run: | git clone https://github.com/rubyjs/mini_racer.git test/mini_racer --depth 1 cd test/mini_racer - git fetch origin refs/pull/210/head + git fetch origin refs/pull/231/head git checkout FETCH_HEAD git reset --hard git clean -f -d -x diff --git a/ext/libv8-node/paths.rb b/ext/libv8-node/paths.rb index 79abbc0..a51a000 100644 --- a/ext/libv8-node/paths.rb +++ b/ext/libv8-node/paths.rb @@ -20,7 +20,7 @@ def object_paths end def platform - Gem::Platform.local.to_s.gsub(/-darwin-?\d+/, '-darwin') + Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? and p.instance_eval { @version = "musl" } }.to_s.gsub(/-darwin-?\d+/, '-darwin') end def config diff --git a/libv8-node.gemspec b/libv8-node.gemspec index 240f6a1..920f547 100644 --- a/libv8-node.gemspec +++ b/libv8-node.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.authors = [''] s.email = [''] - s.homepage = 'https://github.com/sqreen/ruby-libv8-node' + s.homepage = 'https://github.com/rubyjs/libv8-node' s.summary = "Node.JS's V8 JavaScript engine" s.description = "Node.JS's V8 JavaScript engine for multiplatform goodness" s.license = 'MIT'