Skip to content

Commit 44e74d2

Browse files
committed
ci: Use Ruby 3.3 and Add YJIT enabled test
1 parent f21cb45 commit 44e74d2

File tree

1 file changed

+47
-29
lines changed

1 file changed

+47
-29
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,60 @@ jobs:
77
runs-on: ubuntu-latest
88
name: Jekyll Build
99
steps:
10-
- uses: actions/checkout@v4
11-
- uses: ruby/setup-ruby@v1
12-
with:
13-
ruby-version: 3.2
14-
bundler-cache: true
15-
- name: Jekyll Build
16-
run: bundle exec jekyll build
10+
- uses: actions/checkout@v4
11+
- uses: ruby/setup-ruby@v1
12+
with:
13+
ruby-version: 3.3
14+
bundler-cache: true
15+
- name: Jekyll Build
16+
run: bundle exec jekyll build
1717

1818
doc-build-latest:
1919
runs-on: ubuntu-latest
2020
name: Rails Doc Build (latest)
2121
steps:
22-
- uses: actions/checkout@v4
23-
with:
24-
submodules: true
25-
- name: fetch Rails tags
26-
run: cd rails && git fetch --depth=1 origin refs/tags/v7*:refs/tags/v7*
27-
- uses: ruby/setup-ruby@v1
28-
with:
29-
ruby-version: 3.2
30-
bundler-cache: true
31-
- name: Doc Build
32-
run: rake build
22+
- uses: actions/checkout@v4
23+
with:
24+
submodules: true
25+
- name: fetch Rails tags
26+
run: cd rails && git fetch --depth=1 origin refs/tags/v7*:refs/tags/v7*
27+
- uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: 3.3
30+
bundler-cache: true
31+
- name: Doc Build
32+
run: rake build
33+
34+
doc-build-latest-with-yjit:
35+
runs-on: ubuntu-latest
36+
name: Rails Doc Build (latest, with YJIT enabled)
37+
env:
38+
RUBY_YJIT_ENABLE: true
39+
steps:
40+
- uses: actions/checkout@v4
41+
with:
42+
submodules: true
43+
- name: fetch Rails tags
44+
run: cd rails && git fetch --depth=1 origin refs/tags/v7*:refs/tags/v7*
45+
- uses: ruby/setup-ruby@v1
46+
with:
47+
ruby-version: 3.3
48+
bundler-cache: true
49+
- name: Doc Build
50+
run: rake build
3351

3452
doc-build-others:
3553
runs-on: ubuntu-latest
3654
name: Rails Doc Build (older versions)
3755
steps:
38-
- uses: actions/checkout@v4
39-
with:
40-
submodules: true
41-
- name: fetch Rails tags
42-
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*
43-
- uses: ruby/setup-ruby@v1
44-
with:
45-
ruby-version: 2.7
46-
bundler-cache: true
47-
- name: Doc Build
48-
run: rake build_multi
56+
- uses: actions/checkout@v4
57+
with:
58+
submodules: true
59+
- name: fetch Rails tags
60+
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*
61+
- uses: ruby/setup-ruby@v1
62+
with:
63+
ruby-version: 2.7
64+
bundler-cache: true
65+
- name: Doc Build
66+
run: rake build_multi

0 commit comments

Comments
 (0)