From eabf8428593cfd0081adcb717f14ed1cac5968ce Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Sun, 29 Dec 2024 21:27:48 +0100 Subject: [PATCH 1/2] Add ruby-3.4 native gem --- Gemfile | 2 +- Rakefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 797c34aa9..49fb10cf8 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ group :development do gem 'bundler', '>= 1.16', '< 3' gem 'rake', '~> 13.0' gem 'rake-compiler', '~> 1.1' - gem 'rake-compiler-dock', '~> 1.0.pre' + gem 'rake-compiler-dock', '~> 1.7.0' gem 'rspec', '~> 3.0' end diff --git a/Rakefile b/Rakefile index 376132d12..b0d9ebc98 100644 --- a/Rakefile +++ b/Rakefile @@ -136,7 +136,7 @@ namespace "gem" do desc "Build the native gem for #{plat}" task plat => ['prepare', 'build'] do RakeCompilerDock.sh <<-EOT, platform: plat - #{ "sudo apt-get update && sudo apt-get install -y libltdl-dev &&" if plat !~ /linux/ } + sudo apt-get update && sudo apt-get install -y libltdl-dev && bundle --local && rake native:#{plat} pkg/#{gem_spec.full_name}-#{plat}.gem MAKE='nice make -j`nproc`' RUBY_CC_VERSION=${RUBY_CC_VERSION/:2.4.0/} EOT From 35e64d2498a06dbf4f30fc992b4d5719ba2cbe9c Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Sun, 29 Dec 2024 21:32:57 +0100 Subject: [PATCH 2/2] CI: Add ruby-3.4 to test matrix --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b90d9f81..53aa774a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,7 +54,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest, macos-13, windows-latest ] - ruby: [ 2.5, 2.6, 2.7, 3.0, 3.1, 3.2, 3.3, ruby-head, truffleruby-head, jruby-head ] + ruby: [ 2.5, 2.6, 2.7, 3.0, 3.1, 3.2, 3.3, 3.4, ruby-head, truffleruby-head, jruby-head ] exclude: - os: windows-latest ruby: truffleruby-head @@ -165,6 +165,7 @@ jobs: - macos-latest - ubuntu-latest ruby: + - "3.4" - "3.3" - "3.2" - "3.1" @@ -190,6 +191,9 @@ jobs: - os: windows-latest ruby: "3.3" platform: x64-mingw-ucrt + - os: windows-latest + ruby: "3.4" + platform: x64-mingw-ucrt exclude: - os: macos-latest ruby: "2.5" @@ -199,6 +203,8 @@ jobs: ruby: "3.2" - os: windows-latest ruby: "3.3" + - os: windows-latest + ruby: "3.4" runs-on: ${{ matrix.os }} steps: