Skip to content

Commit ec2fd57

Browse files
committed
Ensure libstdc++ exists on Ruby Alpine images
Recent images appear to have removed libstdc++ from some Ruby versions. Add it to ensure the re2 shared library can be loaded.
1 parent dafffb6 commit ec2fd57

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ jobs:
335335
docker run --rm -v "$(pwd):/re2" -w /re2 \
336336
--platform=linux/arm64 \
337337
ruby:${{ matrix.ruby }}-alpine \
338-
./scripts/test-gem-install ${{ matrix.rubygems }}
338+
/bin/sh -c "apk update && apk add libstdc++ && ./scripts/test-gem-install ${{ matrix.rubygems }}"
339339
340340
test-precompiled-arm-linux-gnu:
341341
needs: "precompile-arm-linux-gnu"
@@ -393,7 +393,7 @@ jobs:
393393
docker run --rm -v "$(pwd):/re2" -w /re2 \
394394
--platform=linux/arm/v7 \
395395
ruby:${{ matrix.ruby }}-alpine \
396-
./scripts/test-gem-install ${{ matrix.rubygems }}
396+
/bin/sh -c "apk update && apk add libstdc++ && ./scripts/test-gem-install ${{ matrix.rubygems }}"
397397
398398
test-precompiled-x86-linux-gnu:
399399
needs: "precompile-x86-linux-gnu"
@@ -451,7 +451,7 @@ jobs:
451451
docker run --rm -v "$(pwd):/re2" -w /re2 \
452452
--platform=linux/386 \
453453
ruby:${{ matrix.ruby }}-alpine \
454-
./scripts/test-gem-install ${{ matrix.rubygems }}
454+
/bin/sh -c "apk update && apk add libstdc++ && ./scripts/test-gem-install ${{ matrix.rubygems }}"
455455
456456
test-precompiled-x86_64-linux-gnu:
457457
needs: "precompile-x86_64-linux-gnu"
@@ -506,6 +506,7 @@ jobs:
506506
with:
507507
name: cruby-x86_64-linux-musl-gem
508508
path: pkg
509+
- run: apk update && apk add libstdc++
509510
- run: ./scripts/test-gem-install ${{ matrix.rubygems }}
510511

511512
test-precompiled-arm64-darwin:

0 commit comments

Comments
 (0)