9
9
jobs :
10
10
jekyll-build :
11
11
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 }}
13
18
steps :
14
19
- uses : actions/checkout@v4
15
20
- uses : ruby/setup-ruby@v1
@@ -21,25 +26,12 @@ jobs:
21
26
22
27
doc-build-latest :
23
28
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]
41
33
env :
42
- RUBY_YJIT_ENABLE : true
34
+ RUBY_YJIT_ENABLE : ${{ matrix.yjit-enabled }}
43
35
steps :
44
36
- uses : actions/checkout@v4
45
37
with :
@@ -56,15 +48,26 @@ jobs:
56
48
doc-build-others :
57
49
runs-on : ubuntu-latest
58
50
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"
59
58
steps :
60
59
- uses : actions/checkout@v4
61
60
with :
62
61
submodules : true
63
62
- 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
65
68
- uses : ruby/setup-ruby@v1
66
69
with :
67
- ruby-version : 2.7
70
+ ruby-version : ${{ matrix.ruby-version }}
68
71
bundler-cache : true
69
72
- name : Doc Build
70
- run : rake build_multi
73
+ run : rake ' build_multi[${{ matrix.build-rails-versions }}]'
0 commit comments