From a98b42064bee78dd40243825360581110258528d Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Wed, 4 Mar 2026 10:53:36 +0000 Subject: [PATCH] Revert "Fix Ruby 4.0 CI failure on ubuntu-latest (#3940)" The upstream issue (ruby/rubygems#9284) has been fixed, so the workaround to remove pre-installed Ruby 4.0 from the tool cache is no longer needed. --- .github/workflows/ci.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71847fd2e0..bc66c28654 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,14 +53,6 @@ jobs: with: submodules: "recursive" - # Workaround: The ubuntu-latest runner image (20260126.10+) ships a pre-installed Ruby 4.0.1 - # that causes native extension builds and bundler operations to fail. Removing it forces - # setup-ruby to download a working build from ruby-builder instead. - # See https://github.com/ruby/rubygems/issues/9284. - - name: Remove pre-installed Ruby 4.0 - if: matrix.os == 'ubuntu-latest' && matrix.ruby == '4.0' - run: rm -rf /opt/hostedtoolcache/Ruby/4.0* - - name: Set up Ruby uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 with: