Skip to content

Commit

Permalink
Update Ruby versions
Browse files Browse the repository at this point in the history
Because newer OS doesn't support older Ruby version.

```
Error: Error: CRuby < 2.6 does not support macos-arm64.
        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.
```

This commit removes EOL versions support.
https://www.ruby-lang.org/ja/downloads/branches/
  • Loading branch information
tricknotes committed Jun 23, 2024
1 parent 28acb81 commit b72b284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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: [3.1, 3.2, 3.3, head, truffleruby]
exclude:
- os: windows-latest
ruby: head
Expand Down

0 comments on commit b72b284

Please sign in to comment.