Skip to content

Commit

Permalink
Restore support for Ruby 2.6 and 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mudge committed Dec 29, 2024
1 parent d9787d9 commit fcd79f5
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 18 deletions.
72 changes: 56 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4", "truffleruby"]
ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "truffleruby"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
- { ruby: "3.1", rubygems: "default" }
- { ruby: "3.2", rubygems: "default" }
Expand Down Expand Up @@ -144,8 +146,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["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"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
- { ruby: "3.1", rubygems: "default" }
- { ruby: "3.2", rubygems: "default" }
Expand All @@ -169,13 +173,21 @@ jobs:

test-windows-2019:
needs: "build-cruby-gem"
strategy:
fail-fast: false
matrix:
ruby: ["2.6", "2.7", "3.0"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
runs-on: "windows-2019"
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
rubygems: "3.5.23"
ruby-version: "${{ matrix.ruby }}"
rubygems: "${{ matrix.rubygems }}"
bundler-cache: true
- uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -234,8 +246,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["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"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
runs-on: ubuntu-latest
steps:
Expand All @@ -257,8 +271,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["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"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
runs-on: ubuntu-latest
steps:
Expand All @@ -280,8 +296,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["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"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
runs-on: ubuntu-latest
steps:
Expand All @@ -303,8 +321,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["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"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
runs-on: ubuntu-latest
steps:
Expand All @@ -326,8 +346,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["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"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
runs-on: ubuntu-latest
steps:
Expand All @@ -349,8 +371,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["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"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
runs-on: ubuntu-latest
steps:
Expand All @@ -372,8 +396,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["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"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
- { ruby: "3.1", rubygems: "default" }
- { ruby: "3.2", rubygems: "default" }
Expand All @@ -400,8 +426,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["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"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
runs-on: ubuntu-latest
container:
Expand All @@ -419,8 +447,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["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"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
- { ruby: "3.1", rubygems: "default" }
- { ruby: "3.2", rubygems: "default" }
Expand All @@ -447,8 +477,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["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"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
- { ruby: "3.1", rubygems: "default" }
- { ruby: "3.2", rubygems: "default" }
Expand Down Expand Up @@ -511,13 +543,21 @@ jobs:

test-precompiled-x64-mingw32:
needs: "precompile-x64-mingw32"
strategy:
fail-fast: false
matrix:
ruby: ["2.6", "2.7", "3.0"]
include:
- { ruby: "2.6", rubygems: "3.4.22" }
- { ruby: "2.7", rubygems: "3.4.22" }
- { ruby: "3.0", rubygems: "3.5.23" }
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
rubygems: "3.5.23"
ruby-version: "${{ matrix.ruby }}"
rubygems: "${{ matrix.rubygems }}"
bundler-cache: true
- uses: actions/download-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cross_platforms = %w[
x86_64-linux-musl
].freeze

ENV["RUBY_CC_VERSION"] = %w[3.4.0 3.3.5 3.2.0 3.1.0 3.0.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(":")

gemspec = Gem::Specification.load("argon2id.gemspec")

Expand Down
2 changes: 1 addition & 1 deletion argon2id.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |s|
"source_code_uri" => "https://github.com/mudge/argon2id",
"rubygems_mfa_required" => "true"
}
s.required_ruby_version = ">= 3.0.0"
s.required_ruby_version = ">= 2.6.0"
s.extensions = ["ext/argon2id/extconf.rb"]
s.files = [
"CHANGELOG.md",
Expand Down

0 comments on commit fcd79f5

Please sign in to comment.