-
Notifications
You must be signed in to change notification settings - Fork 32
Add workflow to ensure the gem installs fine on truffleruby #74
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
os: | ||
- ubuntu-22.04 | ||
- ubuntu-20.04 | ||
ruby: [ '2.7', '3.0', '3.1', '3.2', 'debug', 'head', 'jruby-head' ] | ||
ruby: [ '2.7', '3.0', '3.1', '3.2', 'debug', 'head', 'jruby-head', 'truffleruby-head' ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
|
@@ -42,5 +42,12 @@ jobs: | |
env: | ||
GH_TOKEN: ${{ github.token }} | ||
- name: Run test | ||
# Tests don't pass yet on truffleruby | ||
if: >- | ||
matrix.ruby != 'truffleruby-head' | ||
run: bundle exec rake | ||
continue-on-error: ${{ startsWith(matrix.ruby, 'jruby') }} | ||
- name: Install gem | ||
run: | | ||
gem install pkg/*.gem | ||
ruby -rstringio -e 'puts StringIO::VERSION' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just for confirmation: This outputs https://github.com/ruby/stringio/actions/runs/7032124053/job/19135198739?pr=74#step:9:9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, because it uses truffleruby's stringio.rb. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also use
continue-on-error
like for jruby just below, not sure what is best.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. I don't have an opinion for this. You can choose whichever you like.