From c63e80f14ccbdc361551af573d2132182c1c972d Mon Sep 17 00:00:00 2001 From: Paul Mucur Date: Sun, 15 Dec 2024 12:58:05 +0000 Subject: [PATCH] Precompile for Ruby 3.4.0-rc1 --- .github/workflows/dependencies.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/precompile-gem.yml | 2 +- .github/workflows/tests.yml | 30 ++++++++++++++-------------- Rakefile | 2 +- re2.gemspec | 2 +- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index 6f26502..7ac3332 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.2" + ruby-version: "3.4.0-rc1" - name: Upgrade all vendored dependencies to their latest versions run: ./scripts/update-dependencies - uses: actions/create-github-app-token@v1 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index fbd9a43..454d9b7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.2" + ruby-version: "3.4.0-rc1" - run: gem install --no-document yard redcarpet - run: yardoc - uses: actions/upload-pages-artifact@v3 diff --git a/.github/workflows/precompile-gem.yml b/.github/workflows/precompile-gem.yml index 3430a5f..c696d4a 100644 --- a/.github/workflows/precompile-gem.yml +++ b/.github/workflows/precompile-gem.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.3" + ruby-version: "3.4.0-rc1" bundler-cache: true - uses: actions/cache@v4 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 62ae7a5..7c1192b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,7 +27,7 @@ jobs: key: archives-ubuntu-${{ hashFiles('dependencies.yml') }} - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.3" + ruby-version: "3.4.0-rc1" bundler-cache: true - run: bundle exec rake gem - uses: actions/upload-artifact@v4 @@ -85,7 +85,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - ruby: ["3.3", "2.6"] # oldest and newest + ruby: ["3.4.0-rc1", "2.6"] # oldest and newest libre2: - version: "20150501" soname: 0 @@ -128,7 +128,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4"] + ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"] sys: ["enable", "disable"] runs-on: "ubuntu-latest" steps: @@ -151,7 +151,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4"] + ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"] sys: ["enable", "disable"] runs-on: "macos-13" steps: @@ -198,7 +198,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["3.1", "3.2", "3.3"] + ruby: ["3.1", "3.2", "3.3", "head"] sys: ["enable", "disable"] runs-on: "windows-2022" steps: @@ -247,7 +247,7 @@ jobs: - uses: ruby/setup-ruby@v1 id: setup-ruby with: - ruby-version: "3.3" + ruby-version: "3.4.0-rc1" bundler-cache: true - uses: actions/download-artifact@v4 with: @@ -264,7 +264,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] + ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -285,7 +285,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] + ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -306,7 +306,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] + ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -327,7 +327,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] + ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -348,7 +348,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] + ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"] runs-on: macos-14 steps: - uses: actions/checkout@v4 @@ -369,7 +369,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] + ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"] runs-on: macos-13 steps: - uses: actions/checkout@v4 @@ -390,7 +390,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["3.1", "3.2", "3.3"] + ruby: ["3.1", "3.2", "3.3", "head"] runs-on: windows-2022 steps: - uses: actions/checkout@v4 @@ -434,7 +434,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] + ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"] runs-on: ubuntu-latest container: image: "ruby:${{ matrix.ruby }}-alpine" @@ -459,7 +459,7 @@ jobs: key: archives-ubuntu-${{ hashFiles('dependencies.yml') }} - uses: ruby/setup-ruby-pkgs@v1 with: - ruby-version: "3.3" + ruby-version: "3.4.0-rc1" apt-get: valgrind bundler-cache: true - run: bundle exec rake spec:valgrind diff --git a/Rakefile b/Rakefile index 6cdb86f..480ff92 100644 --- a/Rakefile +++ b/Rakefile @@ -29,7 +29,7 @@ cross_platforms = %w[ x86_64-linux ].freeze -ENV['RUBY_CC_VERSION'] = %w[3.3.5 3.2.0 3.1.0 3.0.0 2.7.0 2.6.0].join(':') +ENV['RUBY_CC_VERSION'] = %w[3.4.0 3.3.5 3.2.0 3.1.0 3.0.0 2.7.0 2.6.0].join(':') Gem::PackageTask.new(re2_gemspec).define diff --git a/re2.gemspec b/re2.gemspec index 1a3265d..88df355 100644 --- a/re2.gemspec +++ b/re2.gemspec @@ -41,7 +41,7 @@ Gem::Specification.new do |s| "spec/re2/scanner_spec.rb" ] s.add_development_dependency("rake-compiler", "~> 1.2.7") - s.add_development_dependency("rake-compiler-dock", "~> 1.6.0") + s.add_development_dependency("rake-compiler-dock", "~> 1.7.0.rc1") s.add_development_dependency("rspec", "~> 3.2") s.add_runtime_dependency("mini_portile2", "~> 2.8.7") # keep version in sync with extconf.rb end