From 98028530b62f044fc6f84377a735cd1e98c5485c Mon Sep 17 00:00:00 2001 From: Orien Madgwick <497874+orien@users.noreply.github.com> Date: Mon, 19 Feb 2024 20:38:03 +1100 Subject: [PATCH] CI: be precise regarding the Ubuntu version Older versions of Ruby segfault on newer versions of Ubuntu. --- .github/workflows/ci.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73334f9f..93536aa3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,8 @@ on: jobs: test: - runs-on: ubuntu-latest + name: Test (Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails_version }}) + runs-on: ubuntu-${{ matrix.ubuntu }} strategy: fail-fast: false matrix: @@ -18,18 +19,23 @@ jobs: - '7.1.0' - '7.2.0' - 'edge' + ubuntu: [latest] include: # Ruby 2.6 - ruby: 2.6 rails_version: '6.0.0' + ubuntu: '20.04' - ruby: 2.6 rails_version: '6.1.0' + ubuntu: '20.04' # jruby-9.2 - ruby: jruby-9.2 rails_version: '6.0.0' + ubuntu: '20.04' - ruby: jruby-9.2 rails_version: '6.1.0' + ubuntu: '20.04' # # The past @@ -37,48 +43,69 @@ jobs: # EOL Active Record - ruby: 2.2 rails_version: '3.2.0' + ubuntu: '20.04' - ruby: 2.1 rails_version: '4.1.0' + ubuntu: '20.04' - ruby: 2.4 rails_version: '4.2.0' + ubuntu: '20.04' - ruby: 2.4 rails_version: '5.0.0' + ubuntu: '20.04' - ruby: 2.5 rails_version: '5.1.0' + ubuntu: '20.04' - ruby: 2.6 rails_version: '5.2.0' + ubuntu: '20.04' - ruby: 2.7 rails_version: '5.2.0' + ubuntu: '22.04' - ruby: jruby-9.2 rails_version: '5.2.0' + ubuntu: '22.04' - ruby: 2.7 rails_version: '6.0.0' + ubuntu: '22.04' - ruby: 3.0 rails_version: '6.0.0' + ubuntu: '22.04' - ruby: 3.2 rails_version: '6.0.0' + ubuntu: '22.04' - ruby: jruby-9.4 rails_version: '6.0.0' + ubuntu: '22.04' - ruby: 2.7 rails_version: '6.1.0' + ubuntu: '22.04' - ruby: 3.0 rails_version: '6.1.0' + ubuntu: '22.04' - ruby: 3.2 rails_version: '6.1.0' + ubuntu: '22.04' - ruby: jruby-9.4 rails_version: '6.0.0' + ubuntu: '22.04' - ruby: 2.7 rails_version: '7.0.0' + ubuntu: '22.04' - ruby: 3.0 rails_version: '7.0.0' + ubuntu: '22.04' - ruby: jruby-9.4 rails_version: '6.0.0' + ubuntu: '22.04' # EOL Ruby - ruby: 2.7 rails_version: '7.1.0' + ubuntu: '22.04' - ruby: 3.0 rails_version: '7.1.0' + ubuntu: '22.04' continue-on-error: ${{ matrix.rails_version == 'edge' || endsWith(matrix.ruby, 'head') }}