From ff8c75a8b189e46692a394bb2f36372c4187e348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Joubert?= Date: Sat, 31 Oct 2026 06:10:30 +0200 Subject: [PATCH] Run Ruby < 3.2 on ubuntu-24.04 now that ubuntu-latest is 26.04 ruby/setup-ruby has no Ruby older than 3.2 for ubuntu-26.04. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/benchmark.yml | 3 ++- .github/workflows/ci.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 5f1d5433f64..806cf8ebd9b 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -16,7 +16,8 @@ permissions: jobs: benchmark: - runs-on: ubuntu-latest + # ruby/setup-ruby has no Ruby < 3.2 for ubuntu-26.04, which ubuntu-latest now points to + runs-on: ${{ matrix.ruby < 3.2 && 'ubuntu-24.04' || 'ubuntu-latest' }} env: GH_EVENT: ${{github.event_name}} GH_REF: ${{github.head_ref}} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3eff6db2efb..b59d1bcff0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,8 @@ jobs: run: bundle exec rake rbs:test test: - runs-on: ubuntu-latest + # ruby/setup-ruby has no Ruby < 3.2 for ubuntu-26.04, which ubuntu-latest now points to + runs-on: ${{ matrix.ruby < 3.2 && 'ubuntu-24.04' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: