1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use env var to turn on YJIT for test-bundled-gems

tool/test-bundled-gems.rb use sub processes for testing bundled gems and
doesn't support RUN_OPTS. We weren't enabling YJIT for these tests.
Use an include config with RUBY_YJIT_ENABLE to turn on YJIT for these
tests.

Note that we only test with the default call threshold in this setup,
which is the same as before YJIT was off by defauft. The
--yjit-call-threshold command line was never passed to the tests.
This commit is contained in:
Alan Wu 2021-10-08 16:50:13 -04:00
parent ec4a79a746
commit 5d2e5218f6

View file

@ -4,7 +4,7 @@ jobs:
make:
strategy:
matrix:
test_task: ["check", "test-bundled-gems"] # "test-bundler-parallel",
test_task: ["check"] # "test-bundler-parallel",
os:
- ubuntu-20.04
# - ubuntu-18.04
@ -20,6 +20,10 @@ jobs:
os: ubuntu-20.04
configure: ""
yjit_enable_env: RUBY_YJIT_ENABLE
- test_task: "test-bundled-gems"
os: ubuntu-20.04
configure: "cppflags=-DRUBY_DEBUG"
yjit_enable_env: RUBY_YJIT_ENABLE
fail-fast: false
env:
GITPULLOPTIONS: --no-tags origin ${{github.ref}}