Skip to content

Commit

Permalink
Drop support for Ruby 3.0
Browse files Browse the repository at this point in the history
To be consistent with sqlite3 and only support non-EOL versions of Ruby
that ship with new enough versions of RubyGems to handle GNU and Musl
gems, only support Ruby 3.1+.
  • Loading branch information
mudge committed Dec 16, 2024
1 parent 9ad34f3 commit a478a0c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 61 deletions.
72 changes: 13 additions & 59 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,12 @@ jobs:
with:
platform: x64-mingw-ucrt

precompile-x64-mingw32:
uses: ./.github/workflows/precompile-gem.yml
with:
platform: x64-mingw32

precompile-x86-mingw32:
uses: ./.github/workflows/precompile-gem.yml
with:
platform: x86-mingw32

test-ubuntu:
needs: "build-cruby-gem"
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4.0-rc1", "truffleruby"]
ruby: ["3.1", "3.2", "3.3", "3.4.0-rc1", "truffleruby"]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
Expand All @@ -136,7 +126,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"]
ruby: ["3.1", "3.2", "3.3", "3.4.0-rc1"]
runs-on: "macos-13"
steps:
- uses: actions/checkout@v4
Expand All @@ -152,24 +142,6 @@ jobs:
env:
BUNDLE_PATH: ${{ github.workspace }}/vendor/bundle

test-windows-2019:
needs: "build-cruby-gem"
runs-on: "windows-2019"
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
bundler-cache: true
- uses: actions/download-artifact@v4
with:
name: cruby-gem
path: pkg
- run: ./scripts/test-gem-install
shell: bash
env:
BUNDLE_PATH: ${{ github.workspace }}/vendor/bundle

test-windows-2022:
needs: "build-cruby-gem"
strategy:
Expand Down Expand Up @@ -218,7 +190,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4-rc"]
ruby: ["3.1", "3.2", "3.3", "3.4-rc"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -239,7 +211,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4-rc"]
ruby: ["3.1", "3.2", "3.3", "3.4-rc"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -260,7 +232,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4-rc"]
ruby: ["3.1", "3.2", "3.3", "3.4-rc"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -274,14 +246,14 @@ jobs:
docker run --rm -v "$(pwd):/argon2id" -w /argon2id \
--platform=linux/arm/v7 \
ruby:${{ matrix.ruby }} \
./scripts/test-gem-install
sh -c "gem update --system && ./scripts/test-gem-install"
test-precompiled-arm-linux-musl:
needs: "precompile-arm-linux-musl"
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4-rc"]
ruby: ["3.1", "3.2", "3.3", "3.4-rc"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -302,7 +274,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4-rc"]
ruby: ["3.1", "3.2", "3.3", "3.4-rc"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -323,7 +295,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4-rc"]
ruby: ["3.1", "3.2", "3.3", "3.4-rc"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -344,7 +316,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"]
ruby: ["3.1", "3.2", "3.3", "3.4.0-rc1"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -365,7 +337,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4-rc"]
ruby: ["3.1", "3.2", "3.3", "3.4-rc"]
runs-on: ubuntu-latest
container:
image: "ruby:${{ matrix.ruby }}-alpine"
Expand All @@ -383,7 +355,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"]
ruby: ["3.1", "3.2", "3.3", "3.4.0-rc1"]
runs-on: macos-14
steps:
- uses: actions/checkout@v4
Expand All @@ -404,7 +376,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"]
ruby: ["3.1", "3.2", "3.3", "3.4.0-rc1"]
runs-on: macos-13
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -459,24 +431,6 @@ jobs:
env:
BUNDLE_PATH: ${{ github.workspace }}/vendor/bundle

test-precompiled-x64-mingw32:
needs: "precompile-x64-mingw32"
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
bundler-cache: true
- uses: actions/download-artifact@v4
with:
name: cruby-x64-mingw32-gem
path: pkg
- run: ./scripts/test-gem-install
shell: bash
env:
BUNDLE_PATH: ${{ github.workspace }}/vendor/bundle

ruby-memcheck:
runs-on: "ubuntu-latest"
env:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ User.find_by(name: "alice")&.authenticate("password") #=> user

This gem requires any of the following to run:

* [Ruby](https://www.ruby-lang.org/en/) 3.0 to 3.4.0-rc1
* [Ruby](https://www.ruby-lang.org/en/) 3.1 to 3.4.0-rc1
* [JRuby](https://www.jruby.org) 9.4
* [TruffleRuby](https://www.graalvm.org/ruby/) 24.1

Expand All @@ -274,7 +274,7 @@ Where possible, a pre-compiled native gem will be provided for the following pla
* `aarch64-linux`, `arm-linux`, `x86-linux`, `x86_64-linux` (requires [glibc](https://www.gnu.org/software/libc/) 2.29+, RubyGems 3.3.22+ and Bundler 2.3.21+)
* [musl](https://musl.libc.org/)-based systems such as [Alpine](https://alpinelinux.org) are supported with Bundler 2.5.6+
* macOS `x86_64-darwin` and `arm64-darwin`
* Windows `x64-mingw32` and `x64-mingw-ucrt`
* Windows `x64-mingw-ucrt`
* Java: any platform running JRuby 9.4 or higher

### Verifying the gems
Expand Down

0 comments on commit a478a0c

Please sign in to comment.