From 20be60be94b2845578371cdedb53321767acf1e5 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sun, 21 Jul 2024 20:24:10 +0900 Subject: [PATCH] Update CI Configuration for IRuby (#344) - Deleted Ruby 2.5 and 2.6 from the CI matrix - Removed IRB installation logic for older Ruby versions - Added ffi 1.6 installation for Ruby 2.7 - Update checkout action to v4 in CI workflow --- .github/workflows/ci.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa5858f..89afda3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,12 +26,10 @@ jobs: - "3.1" - "3.0" - "2.7" - - "2.6" - - "2.5" - debug steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 @@ -41,15 +39,13 @@ jobs: - run: rake build - - name: Install irb for old Ruby + - name: Install ffi 1.6 for old Ruby if: | - matrix.ruby == '2.5' || - matrix.ruby == '2.4' || - matrix.ruby == '2.3' + matrix.ruby == '2.7' run: | cat < Gemfile.irb source 'https://rubygems.org' - gem 'irb' + gem 'ffi', '~> 1.6' GEMFILE BUNDLE_GEMFILE=Gemfile.irb bundle install --jobs 4 --retry 3 @@ -87,13 +83,13 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.0" + ruby-version: "ruby" - run: rake build @@ -108,13 +104,13 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.0" + ruby-version: "ruby" - run: rake build