Skip to content

Commit cc40fb8

Browse files
add Ruby head and YJIT to CI (#2030)
* add: ruy head to ci * add: changelog entry * add: YJIT to CI * fix yjit in ci * attemot to fix yjit in ci * add: yjit to ci name * Dont run YJIT and Ruby head against Rails 6.1 * fix matrix * remove4 missed 6.1 tests with new features * fix matrix * fix matrix * Fix Markdown * Update .github/workflows/ci.yml --------- Co-authored-by: Joel Hawksley <joel@hawksley.org> Co-authored-by: Joel Hawksley <joelhawksley@github.com>
1 parent b0a8e0c commit cc40fb8

File tree

2 files changed

+56
-2
lines changed

2 files changed

+56
-2
lines changed

.github/workflows/ci.yml

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,83 @@ jobs:
2626
bundle exec rake partial_benchmark
2727
bundle exec rake translatable_benchmark
2828
test:
29-
name: test (${{ matrix.rails_version }}, ${{ matrix.ruby_version }}, ${{ matrix.mode }})
29+
name: test (${{ matrix.rails_version }}, ${{ matrix.ruby_version }}, ${{ matrix.mode }}, yjit-${{matrix.yjit_mode}})
3030
runs-on: ubuntu-latest
3131
strategy:
3232
fail-fast: false
3333
matrix:
3434
rails_version: ["6.1", "7.0", "7.1", "main"]
35-
ruby_version: ["3.1", "3.2", "3.3"]
35+
ruby_version: ["3.1", "3.2", "3.3", "head"]
3636
mode: ["capture_patch_enabled", "capture_patch_disabled"]
37+
yjit_mode: ['1', '0']
3738
include:
3839
# Run against all previously supported Rails versions for Ruby 3.0
3940
- ruby_version: "3.0"
4041
rails_version: "6.1"
4142
mode: "capture_patch_enabled"
43+
yjit_mode: '0'
4244
- ruby_version: "3.0"
4345
rails_version: "6.1"
4446
mode: "capture_patch_disabled"
47+
yjit_mode: '0'
4548
- ruby_version: "3.0"
4649
rails_version: "7.0"
4750
mode: "capture_patch_enabled"
51+
yjit_mode: '0'
4852
- ruby_version: "3.0"
4953
rails_version: "7.0"
5054
mode: "capture_patch_disabled"
55+
yjit_mode: '0'
5156
- ruby_version: "3.0"
5257
rails_version: "7.1"
5358
mode: "capture_patch_enabled"
59+
yjit_mode: '0'
5460
- ruby_version: "3.0"
5561
rails_version: "7.1"
5662
mode: "capture_patch_disabled"
63+
yjit_mode: '0'
64+
exclude:
65+
# Dont run YJIT and Ruby head against Rails 6.1
66+
- rails_version: "6.1"
67+
ruby_version: "3.1"
68+
mode: "capture_patch_enabled"
69+
yjit_mode: '1'
70+
- rails_version: "6.1"
71+
ruby_version: "3.1"
72+
mode: "capture_patch_disabled"
73+
yjit_mode: '1'
74+
- rails_version: "6.1"
75+
ruby_version: "3.2"
76+
mode: "capture_patch_enabled"
77+
yjit_mode: '1'
78+
- rails_version: "6.1"
79+
ruby_version: "3.2"
80+
mode: "capture_patch_disabled"
81+
yjit_mode: '1'
82+
- rails_version: "6.1"
83+
ruby_version: "3.3"
84+
mode: "capture_patch_enabled"
85+
yjit_mode: '1'
86+
- rails_version: "6.1"
87+
ruby_version: "3.3"
88+
mode: "capture_patch_disabled"
89+
yjit_mode: '1'
90+
- rails_version: "6.1"
91+
ruby_version: "head"
92+
mode: "capture_patch_enabled"
93+
yjit_mode: '1'
94+
- rails_version: "6.1"
95+
ruby_version: "head"
96+
mode: "capture_patch_enabled"
97+
yjit_mode: '0'
98+
- rails_version: "6.1"
99+
ruby_version: "head"
100+
mode: "capture_patch_disabled"
101+
yjit_mode: '1'
102+
- rails_version: "6.1"
103+
ruby_version: "head"
104+
mode: "capture_patch_disabled"
105+
yjit_mode: '0'
57106
env:
58107
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails_version }}.gemfile
59108
steps:
@@ -74,6 +123,7 @@ jobs:
74123
RAISE_ON_WARNING: 1
75124
RAILS_VERSION: ${{ matrix.rails_version }}
76125
CAPTURE_PATCH_ENABLED: ${{ matrix.mode == 'capture_patch_enabled' && 'true' || 'false' }}
126+
RUBY_YJIT_ENABLE: ${{matrix.yjit_mode}}
77127
- name: Upload coverage results
78128
uses: actions/upload-artifact@v3.1.3
79129
if: always()

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ nav_order: 5
1010

1111
## main
1212

13+
* Add ruby head and YJIT to CI.
14+
15+
*Reegan Viljoen*
16+
1317
* Fixed a bug where inline templates where unable to remove trailing whitespace without throwing an error.
1418

1519
*Reegan Viljoen*

0 commit comments

Comments
 (0)