From 4ff36c55f79975a5cee063c918601c7bd533a974 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sun, 21 Jul 2024 14:05:27 +0900 Subject: [PATCH 1/3] Remove Ruby 2.5 and 2.6 from CI - 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 --- .github/workflows/ci.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa5858f..c4fd8d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,6 @@ jobs: - "3.1" - "3.0" - "2.7" - - "2.6" - - "2.5" - debug steps: @@ -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 From 69bf2c3f6eae3d6e3ebed2184f609b50fc90afc9 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sun, 21 Jul 2024 14:30:59 +0900 Subject: [PATCH 2/3] Update checkout action to v4 in CI workflow --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4fd8d4..7fc6acb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: - debug steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 @@ -83,7 +83,7 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 @@ -104,7 +104,7 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 From e6a00c0cebdac320bd7e722160261053bdaa6660 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sun, 21 Jul 2024 14:35:10 +0900 Subject: [PATCH 3/3] Update CI to use default Ruby version --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7fc6acb..89afda3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,7 +89,7 @@ jobs: - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.0" + ruby-version: "ruby" - run: rake build @@ -110,7 +110,7 @@ jobs: - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.0" + ruby-version: "ruby" - run: rake build