diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29fd454..8c80a6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,8 @@ jobs: - "3.1" - "3.0" - "2.7" + - "2.6" + - "2.5" - debug steps: @@ -37,13 +39,34 @@ jobs: - run: rake build - - name: Install ffi 1.6 for old Ruby + - name: Install ffi (if Ruby 2.7) if: | matrix.ruby == '2.7' run: | cat < Gemfile.irb source 'https://rubygems.org' - gem 'ffi', '~> 1.6' + gem 'ffi' + GEMFILE + BUNDLE_GEMFILE=Gemfile.irb bundle install --jobs 4 --retry 3 + + - name: Install ffi 1.6.x (if Ruby 2.6) + if: | + matrix.ruby == '2.6' + run: | + cat < Gemfile.irb + source 'https://rubygems.org' + gem 'ffi', '~> 1.6.0' + GEMFILE + BUNDLE_GEMFILE=Gemfile.irb bundle install --jobs 4 --retry 3 + + - name: Install ffi 1.6.x and irb < 1.4.3 (if Ruby 2.5) + if: | + matrix.ruby == '2.5' + run: | + cat < Gemfile.irb + source 'https://rubygems.org' + gem 'ffi', '~> 1.6.0' + gem 'irb', '< 1.4.3' GEMFILE BUNDLE_GEMFILE=Gemfile.irb bundle install --jobs 4 --retry 3