From 5c6335a3ec005466fefc3815eecaa0fa47a7cc43 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Thu, 25 Jan 2024 17:00:35 -0500 Subject: [PATCH] ci: update rubygems in test containers Rubygems 3.3.22 is the minimum needed to correctly detect and use `-linux-musl` and `-linux-gnu` native gems. https://github.com/rake-compiler/rake-compiler/pull/236 introduced a minimum rubygems version for these native platform gems to provide a sensible error message. --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16f0d355..d43108aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -297,7 +297,10 @@ jobs: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes docker run --rm -v $PWD:/work -w /work \ ${{ matrix.docker_platform}} ruby:${{ matrix.ruby }} \ - ./bin/test-gem-install ./gems + sh -c " + gem update --system && + ./bin/test-gem-install ./gems + " test_the_rest: name: "${{ matrix.platform }} ${{ matrix.ruby }}" @@ -361,4 +364,6 @@ jobs: name: cruby-x86_64-linux-gem path: gems - run: apk add bash build-base + - if: matrix.ruby == '3.0' # https://github.com/rake-compiler/rake-compiler/pull/236 + run: gem update --system - run: ./bin/test-gem-install ./gems