Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI Configuration for IRuby #344

Merged
merged 3 commits into from
Jul 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 > Gemfile.irb
source 'https://rubygems.org'
gem 'irb'
gem 'ffi', '~> 1.6'
GEMFILE
BUNDLE_GEMFILE=Gemfile.irb bundle install --jobs 4 --retry 3

Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down
Loading