Skip to content

Commit 20be60b

Browse files
authored
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
1 parent d54a6b7 commit 20be60b

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@ jobs:
2626
- "3.1"
2727
- "3.0"
2828
- "2.7"
29-
- "2.6"
30-
- "2.5"
3129
- debug
3230

3331
steps:
34-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3533
with:
3634
fetch-depth: 1
3735

@@ -41,15 +39,13 @@ jobs:
4139

4240
- run: rake build
4341

44-
- name: Install irb for old Ruby
42+
- name: Install ffi 1.6 for old Ruby
4543
if: |
46-
matrix.ruby == '2.5' ||
47-
matrix.ruby == '2.4' ||
48-
matrix.ruby == '2.3'
44+
matrix.ruby == '2.7'
4945
run: |
5046
cat <<GEMFILE > Gemfile.irb
5147
source 'https://rubygems.org'
52-
gem 'irb'
48+
gem 'ffi', '~> 1.6'
5349
GEMFILE
5450
BUNDLE_GEMFILE=Gemfile.irb bundle install --jobs 4 --retry 3
5551
@@ -87,13 +83,13 @@ jobs:
8783
runs-on: windows-latest
8884

8985
steps:
90-
- uses: actions/checkout@v3
86+
- uses: actions/checkout@v4
9187
with:
9288
fetch-depth: 1
9389

9490
- uses: ruby/setup-ruby@v1
9591
with:
96-
ruby-version: "3.0"
92+
ruby-version: "ruby"
9793

9894
- run: rake build
9995

@@ -108,13 +104,13 @@ jobs:
108104
runs-on: macos-latest
109105

110106
steps:
111-
- uses: actions/checkout@v3
107+
- uses: actions/checkout@v4
112108
with:
113109
fetch-depth: 1
114110

115111
- uses: ruby/setup-ruby@v1
116112
with:
117-
ruby-version: "3.0"
113+
ruby-version: "ruby"
118114

119115
- run: rake build
120116

0 commit comments

Comments
 (0)