-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (73 loc) · 2.04 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
jekyll-build:
runs-on: ubuntu-latest
name: Jekyll Build (YJIT_ENABLED ${{ matrix.yjit-enabled }})
strategy:
matrix:
yjit-enabled: [0, 1]
env:
RUBY_YJIT_ENABLE: ${{ matrix.yjit-enabled }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Jekyll Build
run: bundle exec jekyll build
doc-build-latest:
runs-on: ubuntu-latest
name: Rails Doc Build (latest, YJIT_ENABLED ${{ matrix.yjit-enabled }})
strategy:
matrix:
yjit-enabled: [0, 1]
env:
RUBY_YJIT_ENABLE: ${{ matrix.yjit-enabled }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: fetch Rails tags
run: cd rails && git fetch --depth=1 origin refs/tags/v8*:refs/tags/v8*
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Doc Build
run: rake build
doc-build-others:
runs-on: ubuntu-latest
name: Rails Doc Build (older versions)
env:
RUBY_YJIT_ENABLE: ${{ matrix.yjit-enabled }}
strategy:
matrix:
include:
- ruby-version: 2.7
build-rails-versions: "5.2"
- ruby-version: 3.0
build-rails-versions: "6.0,6.1"
- ruby-version: 3.3
build-rails-versions: "7.0,7.1,7.2"
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: fetch Rails tags
working-directory: rails
run: |
for version in $(echo "${{ matrix.build-rails-versions }}" | tr ',' ' '); do
git fetch --depth=1 origin refs/tags/v${version}*:refs/tags/v${version}*
done
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Doc Build
run: rake 'build_multi[${{ matrix.build-rails-versions }}]'