File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -56,19 +56,26 @@ jobs:
56
56
doc-build-others :
57
57
runs-on : ubuntu-latest
58
58
name : Rails Doc Build (older versions)
59
+ strategy :
60
+ matrix :
61
+ include :
62
+ - ruby-version : 2.7
63
+ build-rails-versions : " 5.2,6.0,6.1"
64
+ - ruby-version : 3.3
65
+ build-rails-versions : " 7.0,7.1,7.2"
59
66
steps :
60
67
- uses : actions/checkout@v4
61
68
with :
62
69
submodules : true
63
70
- name : fetch Rails tags
64
71
working-directory : rails
65
72
run : |
66
- for version in v7 v6 v5.2 ; do
67
- git fetch --depth=1 origin refs/tags/${version}*:refs/tags/${version}*
73
+ for version in $(echo "${{ matrix.build-rails-versions }}" | tr ',' ' ') ; do
74
+ git fetch --depth=1 origin refs/tags/v ${version}*:refs/tags/v ${version}*
68
75
done
69
76
- uses : ruby/setup-ruby@v1
70
77
with :
71
- ruby-version : 2.7
78
+ ruby-version : ${{ matrix.ruby-version }}
72
79
bundler-cache : true
73
80
- name : Doc Build
74
- run : rake build_multi
81
+ run : rake ' build_multi[${{ matrix.build-rails-versions }}]'
You can’t perform that action at this time.
0 commit comments