From 6bcdfc52830dbd7e4fc62b794ccf1b4e16241736 Mon Sep 17 00:00:00 2001 From: Santiago Rodriguez <46354312+santiagorodriguez96@users.noreply.github.com> Date: Tue, 10 Nov 2026 16:52:48 -0300 Subject: [PATCH] ci: install Bundler `~> 2.4.0` for Ruby 2.7 Ruby 2.7 ships with Bundler 2.1.4, which ignores the required Ruby version of platform-specific gems. Since prism 2.1.0 published precompiled gems that require Ruby >= 3.3, Bundler 2.1.4 picks them on Ruby 2.7 and `bundle install` fails. Bundler 2.4 falls back to the generic `ruby` platform gem instead. --- .github/actions/install-ruby/action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/install-ruby/action.yml b/.github/actions/install-ruby/action.yml index c46d5f18..714e9a58 100644 --- a/.github/actions/install-ruby/action.yml +++ b/.github/actions/install-ruby/action.yml @@ -42,9 +42,12 @@ runs: shell: bash run: | case ${{ inputs.version }} in - 2.7* | 3.*) + 3.*) echo "Skipping Bundler installation for Ruby ${{ inputs.version }}" ;; + 2.7*) + gem install bundler -v '~> 2.4.0' + ;; 2.5* | 2.6*) gem install bundler -v '~> 2.3.0' ;;