summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2022-12-02 15:33:47 -0500
committerGitHub <noreply@github.com>2022-12-02 15:33:47 -0500
commite9e624b76e1f1b2c8dd5d4a6eea7e55ab491822e (patch)
treefd4b8a1f8cd912d848cf44bca75cdf2ed77e24fd /.github
parent82b86b4c97963d25c4e8ba12aab327d47c1f5861 (diff)
YJIT: check that we correctly auto-enable YJIT on Linux (#6854)
* YJIT: check that we correctly auto-enable YJIT on Linux YJIT should be automatically built on Linux x86-64 when rustc is present, and we should see +YJIT in the version string. * Use miniruby rather than system ruby
Notes
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/yjit-ubuntu.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/yjit-ubuntu.yml b/.github/workflows/yjit-ubuntu.yml
index 6b18872c93..2895afd027 100644
--- a/.github/workflows/yjit-ubuntu.yml
+++ b/.github/workflows/yjit-ubuntu.yml
@@ -51,7 +51,9 @@ jobs:
configure: "--with-gcc=clang-12 --enable-yjit=dev"
- test_task: "check"
- configure: "--enable-yjit RUSTC='rustc +1.58.0'" # release build
+ # YJIT should be automatically built in release mode on x86-64 Linux with rustc present
+ #configure: "--enable-yjit RUSTC='rustc +1.58.0'"
+ configure: "RUSTC='rustc +1.58.0'"
rust_version: "1.58.0"
- test_task: "check"
@@ -124,6 +126,9 @@ jobs:
if: ${{ matrix.test_task == 'check' }}
- name: Enable YJIT through ENV
run: echo "RUBY_YJIT_ENABLE=1" >> $GITHUB_ENV
+ # Check that the binary was built with YJIT
+ - name: Check YJIT enabled
+ run: ./miniruby --yjit -v | grep "+YJIT"
- name: make ${{ matrix.test_task }}
run: make -s -j ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS" YJIT_BENCH_OPTS="$YJIT_BENCH_OPTS"
timeout-minutes: 60