Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,28 @@ jobs:
rubygems: 3.2.3
- run: gem --version | grep -F "3.3.3"

testFixedRubygemsBetaVersionUpgrades:
name: "Test rubygems: beta version upgrades RubyGems to that version if the default is older"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: ./
with:
ruby-version: '4.0.7'
rubygems: 4.1.0.beta2
- run: gem --version | grep -F "4.1.0.beta2"

testFixedRubygemsBetaVersionNoop:
name: "Test rubygems: beta version noops if the default is newer"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: ./
with:
ruby-version: '4.0.7'
rubygems: 4.0.0.beta2
- run: gem --version | grep -F "4.0.20"

testUseBundlerFromRubyGemsUpdate:
name: "Test rubygems: version uses the Bundler installed by the rubygems update"
runs-on: ubuntu-latest
Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ This action currently supports these versions of MRI, JRuby and TruffleRuby:

| Interpreter | Versions |
| ----------- | -------- |
| `ruby` | 1.9.3, 2.0.0, 2.1.9, 2.2, all versions from 2.3.0 until 4.0.6, head, debug, mingw, mswin, ucrt |
| `jruby` | 9.1.17.0 - 10.1.1.0, head |
| `truffleruby` | 19.3.0 - 34.0.1, head |
| `truffleruby+graalvm` | 21.2.0 - 34.0.1, head |
| `ruby` | 1.9.3, 2.0.0, 2.1.9, 2.2, all versions from 2.3.0 until 4.1.0-preview1, head, debug, mingw, mswin, ucrt |
| `jruby` | 9.1.17.0 - 10.1.2.0, head |
| `truffleruby` | 19.3.0 - 40.0.0, head |
| `truffleruby+graalvm` | 21.2.0 - 40.0.0, head |

`ruby-debug` is the same as `ruby-head` but with assertions enabled (`-DRUBY_DEBUG=1`).

Expand Down Expand Up @@ -54,9 +54,12 @@ The action works on these [GitHub-hosted runners](https://docs.github.com/en/act
| Windows | `windows-2022`, `windows-2025`, `windows-11-arm` |

Not all combinations of runner images and versions are supported.
The list of available Ruby versions can be seen in [ruby-builder-versions.json](ruby-builder-versions.json) for Ubuntu and macOS
(although some combinations are not available, see [the full list](https://github.com/ruby/ruby-builder/releases/tag/toolcache))
The full list of available Ruby versions can be seen in [here for Ubuntu and macOS](https://github.com/ruby/ruby-builder/releases)
and in [windows-versions.json](windows-versions.json) for Windows.
Newer runner images only have builds of the latest patch release of each series,
so prefer a short version like `'3.4'` over an exact one like `'3.4.2'`, or pin to a specific runner version (e.g. `ubuntu-24.04`).
For example, `ubuntu-26.04` (which `ubuntu-latest` moves to, see [this announcement](https://github.com/actions/runner-images/issues/14748))
only has builds of CRuby 3.2 and newer, as older CRuby versions do not compile on it.

The prebuilt releases are generated by [ruby-builder](https://github.com/ruby/ruby-builder)
and on Windows by [RubyInstaller2](https://github.com/oneclick/rubyinstaller2).
Expand Down
Loading