Skip to content

Commit d5f48c3

Browse files
sealocalkojix2
authored andcommitted
restore Ruby 2.6 in CI matrix
1 parent 36720b7 commit d5f48c3

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- "3.1"
2525
- "3.0"
2626
- "2.7"
27+
- "2.6"
2728
- debug
2829

2930
steps:
@@ -37,13 +38,23 @@ jobs:
3738

3839
- run: rake build
3940

40-
- name: Install ffi 1.6 for old Ruby
41+
- name: Install ffi (if Ruby 2.7)
4142
if: |
4243
matrix.ruby == '2.7'
4344
run: |
4445
cat <<GEMFILE > Gemfile.irb
4546
source 'https://rubygems.org'
46-
gem 'ffi', '~> 1.6'
47+
gem 'ffi'
48+
GEMFILE
49+
BUNDLE_GEMFILE=Gemfile.irb bundle install --jobs 4 --retry 3
50+
51+
- name: Install ffi 1.6.x (if Ruby 2.6)
52+
if: |
53+
matrix.ruby == '2.6'
54+
run: |
55+
cat <<GEMFILE > Gemfile.irb
56+
source 'https://rubygems.org'
57+
gem 'ffi', '~> 1.6.0'
4758
GEMFILE
4859
BUNDLE_GEMFILE=Gemfile.irb bundle install --jobs 4 --retry 3
4960

0 commit comments

Comments
 (0)