From 897c0977ed85aac535180ab17c08f9be301e1fa7 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 30 May 2024 17:23:56 +0200 Subject: [PATCH] Fix CI --- .github/workflows/ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a521dc2..fb916cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,13 +5,22 @@ jobs: strategy: fail-fast: false matrix: - os: [ ubuntu, macos, windows ] + os: [ ubuntu-latest, macos-latest, windows-latest ] ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', jruby, truffleruby ] + # CRuby < 2.6 does not support macos-arm64, so test those on amd64 instead + # JRuby 9.4.7.0 does not have native console support on macos-arm64. + include: + - { os: macos-13, ruby: '2.4' } + - { os: macos-13, ruby: '2.5' } + - { os: macos-13, ruby: jruby } exclude: - - { os: windows, ruby: truffleruby } + - { os: macos-latest, ruby: '2.4' } + - { os: macos-latest, ruby: '2.5' } + - { os: macos-latest, ruby: jruby } + - { os: windows-latest, ruby: truffleruby } # fails to load rspec: RuntimeError: CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before false -> after true - - { os: windows, ruby: jruby } - runs-on: ${{ matrix.os }}-latest + - { os: windows-latest, ruby: jruby } + runs-on: ${{ matrix.os }} env: CHILDPROCESS_UNSET: should-be-unset steps: