Skip to content

Add TruffleRuby in CI #134

Add TruffleRuby in CI

Add TruffleRuby in CI #134

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
min_version: 2.6
engine: cruby
versions: '["truffleruby-head"]'
test:
needs: ruby-versions
name: build (${{ matrix.ruby }} / ${{ matrix.os }} / ${{ matrix.target }})
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest ]
target: [ libedit, libreadline ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Install libedit
run: sudo apt-get install -q ${{ matrix.target }}-dev
if: startsWith(matrix.os, 'ubuntu')
- name: Install libedit
run: brew install libedit
if: startsWith(matrix.os, 'macos')
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: |
bundle install
gem install reline --pre
- name: Run test
run: rake compile test
- name: Run test with libedit enabled
run: rake clobber compile test -- --enable-libedit
if: matrix.target == 'libedit'
- name: Run test with libedit disabled
run: rake clobber compile test -- --disable-libedit
if: matrix.target == 'libreadline'