Skip to content
Merged
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
50 changes: 36 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:

testDotRubyVersion:
name: "Test .ruby-version"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- run: echo "ruby-3.4.0" > .ruby-version
Expand All @@ -147,7 +147,7 @@ jobs:

testToolVersions:
name: "Test .tool-versions"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- run: echo -e "nodejs 16.0.0\nruby 3.4.0" > .tool-versions
Expand All @@ -156,7 +156,7 @@ jobs:

testMise:
name: "Test mise.toml"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- run: echo -e "[tools]\nnode = '18'\nruby = '3.4.0'" > mise.toml
Expand All @@ -165,7 +165,7 @@ jobs:

testNoGemfile:
name: "Test with no Gemfile"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- run: rm Gemfile
Expand All @@ -176,7 +176,7 @@ jobs:

testNoGemfileWithBundlerCache:
name: "Test with no Gemfile but with bundler-cache"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- run: rm Gemfile
Expand All @@ -188,7 +188,7 @@ jobs:

testLatestRubygemsVersion:
name: "Test rubygems: latest on ${{ matrix.ruby }}"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand All @@ -210,7 +210,7 @@ jobs:

testFixedRubygemsVersionUpgrades:
name: "Test rubygems: version upgrades RubyGems to that version if the default is older"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: ./
Expand All @@ -221,7 +221,7 @@ jobs:

testFixedRubygemsVersionNoop:
name: "Test rubygems: version noops if the default is newer"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: ./
Expand All @@ -230,9 +230,31 @@ 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
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: ./
Expand All @@ -255,7 +277,7 @@ jobs:

testMajorBundlerVersion:
name: "Test with a major Bundler version"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: ./
Expand All @@ -266,7 +288,7 @@ jobs:

testMinorBundlerVersion:
name: "Test with a minor Bundler version"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: ./
Expand All @@ -277,7 +299,7 @@ jobs:

testExactBundlerVersion:
name: "Test with an exact Bundler version"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: ./
Expand All @@ -301,7 +323,7 @@ jobs:

testBundlerPre:
name: "Test with a Bundler pre/rc version"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: ./
Expand All @@ -324,7 +346,7 @@ jobs:

testDependencyOnBundler1:
name: "Test gemfile depending on Bundler 1"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/bundler1.gemfile
steps:
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
Loading