[前][次][番号順一覧][スレッド一覧]

ruby-changes:69242

From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:24:20 +0900 (JST)
Subject: [ruby-changes:69242] 413397b91e (master): Turn on YJIT for repeat-count=2 runs through env var

https://git.ruby-lang.org/ruby.git/commit/?id=413397b91e

From 413397b91e5740f41a0d32f819efe4276f42dc09 Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Fri, 8 Oct 2021 15:22:39 -0400
Subject: Turn on YJIT for repeat-count=2 runs through env var

It wasn't on at all before... Since it's a snowflake "include" matrix
element, might as well test the env var with it.
---
 .github/workflows/yjit-ubuntu.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/yjit-ubuntu.yml b/.github/workflows/yjit-ubuntu.yml
index 1acd40fc4f..414fe78b5d 100644
--- a/.github/workflows/yjit-ubuntu.yml
+++ b/.github/workflows/yjit-ubuntu.yml
@@ -19,6 +19,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/yjit-ubuntu.yml#L19
           - test_task: "test-all TESTS=--repeat-count=2"
             os: ubuntu-20.04
             configure: ""
+            yjit_enable_env: RUBY_YJIT_ENABLE
       fail-fast: false
     env:
       GITPULLOPTIONS: --no-tags origin ${{github.ref}}
@@ -62,6 +63,9 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/yjit-ubuntu.yml#L63
         run: |
           ./miniruby -e '(("a".."z").to_a+("A".."Z").to_a+("0".."9").to_a+%w[foo bar test zzz]).each{|basename|File.write("#{basename}.rb", "raise %(do not load #{basename}.rb)")}'
         if: ${{ matrix.test_task == 'check' }}
+      - name: Enable YJIT through ENV
+        run: echo "RUBY_YJIT_ENABLE=1" >> $GITHUB_ENV
+        if: ${{ matrix.yjit_enable_env }}
       - run: make $JOBS -s ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS"
         timeout-minutes: 60
         env:
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]