From c1d29692482d293dd0eefde449193eddd9273c45 Mon Sep 17 00:00:00 2001 From: makicamel Date: Sun, 15 Sep 2024 12:55:16 +0900 Subject: [PATCH 1/2] Don't run CI against truffleruby --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3bc386..9b16787 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,12 +8,10 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - ruby: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0, head, truffleruby] + ruby: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0, head] exclude: - os: windows-latest ruby: head - - os: windows-latest - ruby: truffleruby runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 From 2c6b07ecf20432ae9f40c6dd6b1a6785cb3cc081 Mon Sep 17 00:00:00 2001 From: makicamel Date: Sun, 15 Sep 2024 12:42:00 +0900 Subject: [PATCH 2/2] Fix CI ``` Either use a newer Ruby version or use a macOS image running on amd64, e.g., macos-13 or macos-12. Note that GitHub changed the meaning of macos-latest from macos-12 (amd64) to macos-14 (arm64): https://github.blog/changelog/2024-04-01-macos-14-sonoma-is-generally-available-and-the-latest-macos-runner-image/ If you are using a matrix of Ruby versions, a good solution is to run only < 2.6 on amd64, like so: matrix: ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3'] os: [ ubuntu-latest, macos-latest ] # CRuby < 2.6 does not support macos-arm64, so test those on amd64 instead exclude: - { os: macos-latest, ruby: '2.4' } - { os: macos-latest, ruby: '2.5' } include: - { os: macos-13, ruby: '2.4' } - { os: macos-13, ruby: '2.5' } But of course you should consider dropping support for these long-EOL Rubies, which cannot even be built on recent macOS machines. ``` --- .github/workflows/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9b16787..7b0069f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ name: CI -on: [push,pull_request] +on: [push, pull_request] jobs: build: @@ -8,10 +8,11 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - ruby: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0, head] - exclude: - - os: windows-latest - ruby: head + ruby: [2.6, 2.7, 3.0, head] + include: + - { os: macos-13, ruby: '2.3' } + - { os: macos-13, ruby: '2.4' } + - { os: macos-13, ruby: '2.5' } runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2