From 9e288bc392ca38957e08a4f6184ec305f05e7eba Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Sat, 6 Jan 2024 01:50:50 +0900 Subject: [PATCH] [CI] Update Ruby 2.7's default rubygems version to something that doesn't try to install sqlite3 1.7.0 that doesn't support Ruby < 3 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70d65b1..ea1510e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,7 +55,7 @@ jobs: - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby_version }} - rubygems: ${{ (matrix.ruby_version < '3.0' && 'default') || 'latest' }} + rubygems: ${{ (matrix.ruby_version < '2.7' && 'default') || (matrix.ruby_version < '3' && '3.4.22') || 'latest' }} bundler-cache: true continue-on-error: ${{ (matrix.ruby_version == 'ruby-head') || (matrix.ruby_version == 'jruby') || (matrix.rails_version == 'edge') }}