Skip to content

Commit 2f426ff

Browse files
committed
Patch platform for musl tests with old rubygems
1 parent 43ce7cb commit 2f426ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ jobs:
382382
- name: Set metadata
383383
id: set-metadata
384384
run: |
385-
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ruby -e 'puts Gem.platforms.last.to_s' | tee gem_platform
385+
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
386386
echo "::set-output name=GEM_PLATFORM::$(cat gem_platform)"
387387
- name: Download a single artifact
388388
uses: actions/download-artifact@v2

0 commit comments

Comments
 (0)