Use rb_sym2str instead of SYM2ID #228
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: CI | |
on: | |
- push | |
- pull_request | |
- workflow_dispatch | |
jobs: | |
ruby-versions: | |
uses: ruby/actions/.github/workflows/ruby_versions.yml@master | |
with: | |
engine: cruby-jruby | |
min_version: 2.3 | |
host: | |
needs: ruby-versions | |
name: ${{ matrix.os }} ${{ matrix.ruby }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
- macos-11 | |
- macos-12 | |
- windows-latest | |
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | |
include: | |
- { os: windows-latest , ruby: mswin } # ruby/ruby windows CI | |
- { os: ubuntu-latest , ruby: jruby-9.1 } # Ruby 2.3 | |
- { os: ubuntu-latest , ruby: jruby-9.2 } # Ruby 2.5 | |
- { os: ubuntu-latest , ruby: jruby-9.3 } # Ruby 2.7 | |
- { os: macos-latest , ruby: truffleruby } | |
- { os: ubuntu-latest , ruby: truffleruby } | |
exclude: | |
- { os: windows-latest, ruby: jruby } | |
- { os: windows-latest, ruby: jruby-head } | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby-pkgs@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
apt-get: ragel | |
brew: ragel | |
# only needed for Ruby 2.3 | |
mingw: ragel | |
- run: bundle install | |
- run: rake compile | |
- run: rake test | |
- run: rake build | |
- run: gem install pkg/*.gem | |
if: ${{ matrix.ruby != '3.2' }} |