Partially revert 39e434ff1308e7021ae4521bc26133189f5600e4 #921
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: Ruby | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
# # This job runs at 00:00 on Friday. | |
- cron: '0 15 * * 5' | |
jobs: | |
ruby-versions: | |
uses: ruby/actions/.github/workflows/ruby_versions.yml@master | |
with: | |
engine: cruby-truffleruby | |
min_version: 3.2 | |
build: | |
needs: ruby-versions | |
name: build (${{ matrix.ruby }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | |
include: | |
- ruby: "3.3" | |
rubyopt: "--enable-frozen-string-literal" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Bundle install | |
run: | | |
bundle install | |
- name: Run the test suite | |
run: | | |
bundle exec rake TESTOPT=-v RUBYOPT="${{ matrix.rubyopt }}" | |
if: ${{ !startsWith(matrix.ruby, 'truffle') }} | |
- name: Run the dog bench | |
run: | | |
bundle exec ruby tool/dog_bench.rb | |
if: ${{ !startsWith(matrix.ruby, 'truffle') }} |