99jobs :
1010 jekyll-build :
1111 runs-on : ubuntu-latest
12- name : Jekyll Build
12+ name : Jekyll Build (YJIT_ENABLED ${{ matrix.yjit-enabled }})
13+ strategy :
14+ matrix :
15+ yjit-enabled : [0, 1]
16+ env :
17+ RUBY_YJIT_ENABLE : ${{ matrix.yjit-enabled }}
1318 steps :
1419 - uses : actions/checkout@v4
1520 - uses : ruby/setup-ruby@v1
@@ -21,25 +26,12 @@ jobs:
2126
2227 doc-build-latest :
2328 runs-on : ubuntu-latest
24- name : Rails Doc Build (latest)
25- steps :
26- - uses : actions/checkout@v4
27- with :
28- submodules : true
29- - name : fetch Rails tags
30- run : cd rails && git fetch --depth=1 origin refs/tags/v7*:refs/tags/v7*
31- - uses : ruby/setup-ruby@v1
32- with :
33- ruby-version : 3.3
34- bundler-cache : true
35- - name : Doc Build
36- run : rake build
37-
38- doc-build-latest-with-yjit :
39- runs-on : ubuntu-latest
40- name : Rails Doc Build (latest, with YJIT enabled)
29+ name : Rails Doc Build (latest, YJIT_ENABLED ${{ matrix.yjit-enabled }})
30+ strategy :
31+ matrix :
32+ yjit-enabled : [0, 1]
4133 env :
42- RUBY_YJIT_ENABLE : true
34+ RUBY_YJIT_ENABLE : ${{ matrix.yjit-enabled }}
4335 steps :
4436 - uses : actions/checkout@v4
4537 with :
@@ -56,15 +48,26 @@ jobs:
5648 doc-build-others :
5749 runs-on : ubuntu-latest
5850 name : Rails Doc Build (older versions)
51+ strategy :
52+ matrix :
53+ include :
54+ - ruby-version : 2.7
55+ build-rails-versions : " 5.2,6.0,6.1"
56+ - ruby-version : 3.3
57+ build-rails-versions : " 7.0,7.1,7.2"
5958 steps :
6059 - uses : actions/checkout@v4
6160 with :
6261 submodules : true
6362 - name : fetch Rails tags
64- run : cd rails && git fetch --depth=1 origin refs/tags/v7*:refs/tags/v7* refs/tags/v6*:refs/tags/v6* refs/tags/v5*:refs/tags/v5*
63+ working-directory : rails
64+ run : |
65+ for version in $(echo "${{ matrix.build-rails-versions }}" | tr ',' ' '); do
66+ git fetch --depth=1 origin refs/tags/v${version}*:refs/tags/v${version}*
67+ done
6568 - uses : ruby/setup-ruby@v1
6669 with :
67- ruby-version : 2.7
70+ ruby-version : ${{ matrix.ruby-version }}
6871 bundler-cache : true
6972 - name : Doc Build
70- run : rake build_multi
73+ run : rake ' build_multi[${{ matrix.build-rails-versions }}]'
0 commit comments