Skip to content

Commit

Permalink
ext: add experimental support for ruby 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Nov 26, 2023
1 parent d4df9fd commit b540402
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 20 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/gem-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["2.7", "3.0", "3.1", "3.2"]
ruby: ["2.7", "3.0", "3.1", "3.2", "head"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -82,7 +82,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["3.1", "3.2", "truffleruby"]
ruby: ["3.1", "3.2", "head", "truffleruby"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["3.1", "3.2"]
ruby: ["3.1", "3.2", "head"]
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3.0-preview3"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -202,7 +202,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3.0-preview3"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -226,7 +226,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.1", "3.2"]
ruby: ["3.1", "3.2", "head"]
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3.0-preview3"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -288,7 +288,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
ruby: ["2.7", "3.0", "3.1", "3.2", "head"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -306,7 +306,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
ruby: ["2.7", "3.0", "3.1", "3.2", "head"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -324,7 +324,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3-rc"]
runs-on: ubuntu-latest
container:
image: ruby:${{matrix.ruby}}-alpine
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sqlite3-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
ruby: ["3.2", "3.1", "3.0", "2.7"]
ruby: ["head", "3.2", "3.1", "3.0", "2.7"]
lib: [system, packaged]
include:
- { os: ubuntu-latest, ruby: truffleruby, lib: packaged }
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ gemspec

gem("minitest", "5.20.0")
gem("rake-compiler", "1.2.5")
gem("rake-compiler-dock", "1.3.1")
gem("rake-compiler-dock", "1.4.0.rc1")
gem("rdoc", "6.6.0")

gem("ruby_memcheck", "2.2.1") if Gem::Platform.local.os == "linux"
6 changes: 3 additions & 3 deletions bin/test-gem-file-contents
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ Minitest::Reporters.use!([Minitest::Reporters::SpecReporter.new])
puts "Testing '#{gemfile}' (#{gemspec.platform})"
describe File.basename(gemfile) do
let(:all_supported_ruby_versions) {
["1.9.2", "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2"]
["1.9.2", "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3"]
}
let(:native_supported_ruby_versions) { ["2.7", "3.0", "3.1", "3.2"] }
let(:ucrt_supported_ruby_versions) { ["3.1", "3.2"] }
let(:native_supported_ruby_versions) { ["2.7", "3.0", "3.1", "3.2", "3.3"] }
let(:ucrt_supported_ruby_versions) { ["3.1", "3.2", "3.3"] }
let(:platform_supported_ruby_versions) do
if gemspec.platform.to_s == "x64-mingw-ucrt"
ucrt_supported_ruby_versions
Expand Down
4 changes: 0 additions & 4 deletions bin/test-gem-install
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ pushd $GEMS_DIR

popd

if [ -n "${BUNDLE_APP_CONFIG:-}" ] ; then
export BUNDLE_CACHE_PATH="${BUNDLE_APP_CONFIG}/cache"
fi

bundle install --local || bundle install

rm -rf lib ext # ensure we don't use the local files
Expand Down
2 changes: 1 addition & 1 deletion rakelib/native.rake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require "rake/extensiontask"
require "rake_compiler_dock"
require "yaml"

cross_rubies = ["3.2.0", "3.1.0", "3.0.0", "2.7.0"]
cross_rubies = ["3.3.0", "3.2.0", "3.1.0", "3.0.0", "2.7.0"]
cross_platforms = [
"aarch64-linux",
"arm-linux",
Expand Down

0 comments on commit b540402

Please sign in to comment.