Add workflow to ensure the gem installs fine on truffleruby #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TruffleRuby | |
on: [push, pull_request] | |
jobs: | |
truffleruby: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: truffleruby-head | |
bundler-cache: true | |
- name: Test installing the gem on TruffleRuby | |
run: | | |
bundle exec rake compile | |
bundle exec rake build | |
gem install pkg/stringio-*.gem | |
ruby -rstringio -e 'p StringIO' |