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
47 changes: 12 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
fail-fast: false
matrix:
ruby:
- 3.2.8
- 3.3.8
- 3.4.3
- 3.2.9
- 3.3.9
- 3.4.6
- 3.5.0-preview1
- jruby-10.0.0.0
- truffleruby-24.2.1
- jruby-10.0.2.0
- truffleruby-25.0.0
- system
os:
- ubuntu-latest
Expand All @@ -54,7 +54,7 @@ jobs:
ruby: 3.5.0-preview1
# TruffleRuby doesn't work on Windows.
- os: windows-latest
ruby: truffleruby-24.2.1
ruby: truffleruby-25.0.0
defaults:
run:
working-directory: examples/gem
Expand All @@ -72,7 +72,7 @@ jobs:
- if: matrix.ruby == 'system'
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.8
ruby-version: 3.2.9
- run: bazel build ...
- run: bazel run lib/gem:add-numbers 2
- run: bazel run lib/gem:print-version
Expand Down Expand Up @@ -117,8 +117,8 @@ jobs:
fail-fast: false
matrix:
ruby:
- 3.3.8
- jruby-10.0.0.0
- 3.3.9
- jruby-10.0.2.0
use-system-ruby:
- true
- false
Expand Down Expand Up @@ -149,20 +149,11 @@ jobs:
fail-fast: false
matrix:
ruby:
- jruby-10.0.0.0
- jruby-10.0.2.0
os:
- ubuntu-latest
- macos-latest
- windows-latest
mode:
- bzlmod
exclude:
# Previews are not available via RubyInstaller.
- os: windows-latest
ruby: 3.5.0-preview1
# TruffleRuby doesn't work on Windows.
- os: windows-latest
ruby: truffleruby-24.2.1
defaults:
run:
working-directory: examples/deep_gem
Expand All @@ -180,7 +171,7 @@ jobs:
- if: matrix.ruby == 'system'
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.8
ruby-version: 3.2.9
- run: ./do_test

examples-rails:
Expand All @@ -196,15 +187,6 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
mode:
- bzlmod
exclude:
# Previews are not available via RubyInstaller.
- os: windows-latest
ruby: 3.5.0-preview1
# TruffleRuby doesn't work on Windows.
- os: windows-latest
ruby: truffleruby-24.2.1
defaults:
run:
working-directory: examples/rails
Expand All @@ -215,14 +197,8 @@ jobs:
# Move autoload_externally to .bazelrc once Bazel 6 support is dropped.
bazelrc: common --announce_rc --incompatible_autoload_externally=
module-root: examples/rails
# Workaround for long path issues: https://github.com/jruby/jruby/issues/3995.
output-base: ${{ matrix.os == 'windows-latest' && 'D:/b' || '' }}
repository-cache: true
- run: echo ${{ matrix.ruby }} > .ruby-version
- if: matrix.ruby == 'system'
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.5
- run: ./do_test

release:
Expand All @@ -234,6 +210,7 @@ jobs:
- examples-gem
- examples-jekyll
- examples-native_ext
- examples-rails
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7
with:
mount_bazel_caches: false
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The ruleset is known to work with:
load("@rules_ruby//ruby:deps.bzl", "rb_register_toolchains")

rb_register_toolchains(
version = "3.1.6",
version = "3.3.9",
# alternatively, load version from .ruby-version file
# version_file = "//:.ruby-version",
)
Expand Down Expand Up @@ -102,7 +102,7 @@ The following toolchains are known to work and tested on CI.
| MRI 3.3 | 🟩 | 🟩 | 🟩 |
| MRI 3.2 | 🟩 | 🟩 | 🟩 |
| JRuby 10.0 | 🟩 | 🟩 | 🟩 |
| TruffleRuby 24.0 | 🟩 | 🟩 | 🟥 |
| TruffleRuby 25.0 | 🟩 | 🟩 | 🟥 |

The following toolchains were previously known to work but *no longer tested on CI*.

Expand All @@ -113,6 +113,7 @@ The following toolchains were previously known to work but *no longer tested on
| MRI 2.7 | 🟩 | 🟩 | 🟩 |
| JRuby 9.4 | 🟩 | 🟩 | 🟩 |
| JRuby 9.3 | 🟩 | 🟩 | 🟩 |
| TruffleRuby 24.0 | 🟩 | 🟩 | 🟥 |
| TruffleRuby 23.0 | 🟩 | 🟩 | 🟥 |
| TruffleRuby 22.0 | 🟩 | 🟩 | 🟥 |

Expand Down
2 changes: 1 addition & 1 deletion examples/deep_gem/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
jruby-10.0.0.0
jruby-10.0.2.0
2 changes: 1 addition & 1 deletion examples/gem/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
jruby-10.0.0.0
jruby-10.0.2.0
2 changes: 1 addition & 1 deletion examples/native_ext/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
jruby-10.0.0.0
jruby-10.0.2.0
1 change: 1 addition & 0 deletions examples/rails/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ PLATFORMS
arm-linux-gnu
arm-linux-musl
arm64-darwin
arm64-darwin-25
x86_64-darwin
x86_64-linux-gnu
x86_64-linux-musl
Expand Down
3 changes: 0 additions & 3 deletions examples/rails/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ bazel_dep(
ruby = use_extension("@rules_ruby//ruby:extensions.bzl", "ruby")
ruby.toolchain(
name = "ruby",
# ruby-build is used to download CRuby
# https://github.com/rbenv/ruby-build
ruby_build_version = "20250724",
version_file = "//:.ruby-version",
)
ruby.bundle_fetch(
Expand Down
1 change: 1 addition & 0 deletions examples/rails/people_tracker/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ PLATFORMS
arm-linux-gnu
arm-linux-musl
arm64-darwin-24
arm64-darwin-25
x86_64-linux
x86_64-linux-gnu
x86_64-linux-musl
Expand Down
4 changes: 4 additions & 0 deletions ruby/private/bundler_checksums.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# curl -sSf https://rubygems.org/api/v1/versions/bundler.json | jq 'map({key: .number, value: .sha}) | from_entries' | grep -vE '\.pre|\.rc|\.beta'

BUNDLER_CHECKSUMS = {
"2.7.2": "1decaf9e2e1acb91b6586a2925c8f3f6da2334a82731a62ff2ded1b83c283871",
"2.7.1": "0ad5a002a879776b2a98be652f557ac8731be3353612d63fa4ef1b2706dc1e0b",
"2.7.0": "27c18e8c1593dd0cab39140265453001e3bd2b440e0873480104c6df347e15ab",
"2.6.9": "a25675ffbd055ae1186766cc1e120b4cf62588e88abb59b99c57e22b1c55c9eb",
"2.6.8": "bde999917296a162e49564942dc2312ed9a8d32fc2f7b496c95f6df3cfcc87a9",
"2.6.7": "90459ee83f45320f40bc5b255037f5800ce90de8c7061127e5e6a64231020393",
"2.6.6": "832b2ab8d2ad6e3d275138fb640df3d36d4818e142d13b277b44886711b89761",
Expand Down
7 changes: 6 additions & 1 deletion ruby/private/download.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"Repository rule for fetching Ruby interpreters"

RUBY_BUILD_VERSION = "20250430"
RUBY_BUILD_VERSION = "20250925"

_JRUBY_BINARY_URL = "https://repo1.maven.org/maven2/org/jruby/jruby-dist/{version}/jruby-dist-{version}-bin.tar.gz"
_RUBY_BUILD_URL = "https://github.com/rbenv/ruby-build/archive/refs/tags/v{version}.tar.gz"
Expand Down Expand Up @@ -38,7 +38,12 @@ _JRUBY_VERSIONS = {
"9.4.10.0": "0b325bb6e64896dfcf235bbc6506ca9b5af78f1c8fec7f048bc4188b1793b5e0",
"9.4.11.0": "cf4067bdc3a6ab518c786588e2486adc047b9cea0b96a43218b03ac651d26e11",
"9.4.12.0": "05c5d203d6990c92671cc42f57d2fa1c1083bbfd16fa7023dc5848cdb8f0aa2e",
"9.4.13.0": "226d9c3a2e332f8f249838f96c20e87e0df2b9a464a11477b47be6dafb66412c",
"9.4.14.0": "7ea2be8d0c5989714c795b4544492bf9941c9576e7a78f593a19c85567bc0452",
"10.0.0.0": "427d9827ed23fe6b4d11fe61665c75dd7476ba36a0438376eb310ce2a8d24733",
"10.0.0.1": "0ba34ac5dfec7c22659b14db668a06284db7fc1c820c49c04b92271a6636bafb",
"10.0.1.0": "22174ed408aa19340fc3c609b67f5a83374539ecc50053153d60f6e1f81faa9d",
"10.0.2.0": "b8a026f38aa98461a04ed0aa0b20891ce257ecbe53e124719ce9ee5b804525f1",
}
_JRUBY_INTEGRITY_MISSING = """

Expand Down
Loading