From 542e7ded5137148ddbba876a945358196e53fc5e Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Tue, 28 Apr 2026 09:38:16 +0200 Subject: [PATCH] Test with Ruby 4.0 I added Ruby 4.0 to the CI matrix. Cleaning up: Use v6 of actions/checkout, and let ruby/setup-ruby handle the installation and caching of gems. Quotes around the "3.0" ruby version makes sure GitHub Actions don't convert it from float to integer meaning we were using the latest v3.x... Using shorthand Yaml array syntax, and I fixed the latest date in the changelog. --- .github/workflows/ci.yml | 49 ++++++++++++---------------------------- CHANGES.md | 2 +- 2 files changed, 15 insertions(+), 36 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de016e3..7bc145d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,16 +13,15 @@ jobs: fail-fast: false matrix: ruby: - [ - ruby-3.0, - ruby-3.1, - ruby-3.2, - ruby-3.3, - ruby-3.4, - jruby-9.4.12, - jruby-10.0.0, - truffleruby, - ] + - ruby-3.0 + - ruby-3.1 + - ruby-3.2 + - ruby-3.3 + - ruby-3.4 + - ruby-4.0 + - jruby-9.4.12 + - jruby-10.0.0 + - truffleruby os: [ubuntu-latest, windows-latest] exclude: - { ruby: truffleruby, os: windows-latest } @@ -31,22 +30,12 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - - - uses: actions/cache@v3 - with: - path: vendor/bundle - key: bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}- - - - name: bundle install - run: | - bundle config path vendor/bundle - bundle install --jobs 4 --retry 3 + bundler-cache: true - run: bundle exec rake compile spec @@ -54,22 +43,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - uses: ruby/setup-ruby@v1 with: - ruby-version: 3.0 + ruby-version: "3.0" bundler: 2.5.23 - - - uses: actions/cache@v3 - with: - path: vendor/bundle - key: bundle-use-ruby-lint-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: bundle-use-ruby-lint- - - - name: bundle install - run: | - bundle config path vendor/bundle - bundle install --jobs 4 --retry 3 + bundler-cache: true - run: bundle exec rake rubocop diff --git a/CHANGES.md b/CHANGES.md index c5dabe1..1687f98 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,4 @@ -## [1.4.0] (2022-01-16) +## [1.4.0] (2025-05-04) [1.4.0]: https://github.com/RubyCrypto/ed25519/compare/v1.3.0...v1.4.0