From d320d8bbbad98f1069e68a3ad3054a3847f17d76 Mon Sep 17 00:00:00 2001 From: David Corson-Knowles Date: Mon, 9 Nov 2026 15:57:52 -0800 Subject: [PATCH] Fix CI on the ubuntu-26.04 and Windows runner images ubuntu-latest now resolves to ubuntu-26.04, which has no CRuby builds older than 2.3, so run 2.1 and 2.2 on ubuntu-24.04 instead. Bump ruby/setup-ruby to v1.338.0. v1.335.0 downloads the mingw64 msys2 toolchain for Ruby 2.4-3.0 on Windows from the latest setup-msys2-gcc release, which no longer ships it (404); newer versions pin a tagged release that does. --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 626e47c..5b122f2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,13 +25,19 @@ jobs: - { os: macos-latest, ruby: '2.3' } - { os: macos-latest, ruby: '2.4' } - { os: macos-latest, ruby: '2.5' } + # ubuntu-latest is ubuntu-26.04, which has no builds of CRuby < 2.3. + - { os: ubuntu-latest, ruby: '2.1' } + - { os: ubuntu-latest, ruby: '2.2' } + include: + - { os: ubuntu-24.04, ruby: '2.1' } + - { os: ubuntu-24.04, ruby: '2.2' } steps: - name: Checkout repo uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 - name: Set up Ruby - uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 + uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true