From c993d72e18cbbfebf0f03b1140e5f496f1135b1d Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 20 Jan 2024 18:05:06 +0100 Subject: [PATCH] Test legacy rubies on Ubuntu 20.04 Attempt to prevent segmentation faults --- .github/workflows/legacy_ruby.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/legacy_ruby.yml b/.github/workflows/legacy_ruby.yml index abcfb36..dac8d74 100644 --- a/.github/workflows/legacy_ruby.yml +++ b/.github/workflows/legacy_ruby.yml @@ -12,13 +12,12 @@ permissions: jobs: test: name: Legacy Ruby specs - runs-on: ubuntu-latest + runs-on: ${{ matrix.ruby < '2.3' && 'ubuntu-20.04' || 'ubuntu-latest' }} strategy: matrix: ruby-version: ['2.1', '2.2', '2.3', '2.4', '2.5'] gemfile: [am_3.2, am_4.0, am_4.1, am_4.2, am_5.0, am_5.1, am_5.2, am_6.0, am_6.1] - channel: [stable] exclude: - ruby-version: '2.1' @@ -70,11 +69,6 @@ jobs: BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile TEST_CONFIG: ./spec/config.github.yml - # Ruby < 2.3 fail with segmentation fault so they are allowed to fail - # On ubuntu-20.04, also 2.3 fails, maybe this is an issue with libcurl - # (should investigate) - continue-on-error: ${{ matrix.channel != 'stable' || matrix.ruby < '2.3' }} - steps: - uses: actions/checkout@v4 - name: Set up Ruby