@@ -29,15 +29,16 @@ jobs:
29
29
matrix :
30
30
include :
31
31
# Test both FFI and Native implementations on the highest and lowest
32
- # Ruby versions for CRuby and JRuby, but only on Bazel 5.x.
33
- - { name: Ruby 3.0, ruby: ruby-3.0.2, ffi: NATIVE }
34
- - { name: Ruby 3.0, ruby: ruby-3.0.2, ffi: FFI, continuous-only: true }
35
- - { name: Ruby 3.1, ruby: ruby-3.1.0, continuous-only: true }
36
- - { name: Ruby 3.2, ruby: ruby-3.2.0, continuous-only: true }
37
- - { name: Ruby 3.3, ruby: ruby-3.3.0, ffi: NATIVE }
38
- - { name: Ruby 3.3, ruby: ruby-3.3.0, ffi: FFI }
39
- - { name: JRuby 9.4, ruby: jruby-9.4.6.0, ffi: NATIVE }
40
- - { name: JRuby 9.4, ruby: jruby-9.4.6.0, ffi: FFI }
32
+ # Ruby versions for CRuby and JRuby
33
+ - { name: Ruby 3.0, ruby: ruby-3.0.2, ffi: NATIVE, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:7.1.2-ruby-3.0.2-d9624f2aa83cba3eaf906f751d75b36aacb9aa82' }
34
+ - { name: Ruby 3.0, ruby: ruby-3.0.2, ffi: FFI, continuous-only: true, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:7.1.2-ruby-3.0.2-d9624f2aa83cba3eaf906f751d75b36aacb9aa82' }
35
+ - { name: Ruby 3.1, ruby: ruby-3.1.6, continuous-only: true }
36
+ - { name: Ruby 3.2, ruby: ruby-3.2.6, continuous-only: true }
37
+ - { name: Ruby 3.3, ruby: ruby-3.3.6, continuous-only: true }
38
+ - { name: Ruby 3.4, ruby: ruby-3.4.1, ffi: NATIVE }
39
+ - { name: Ruby 3.4, ruby: ruby-3.4.1, ffi: FFI }
40
+ - { name: JRuby 9.4, ruby: jruby-9.4.9.0, ffi: NATIVE }
41
+ - { name: JRuby 9.4, ruby: jruby-9.4.9.0, ffi: FFI }
41
42
42
43
name : ${{ matrix.continuous-only && inputs.continuous-prefix || '' }} Linux ${{ matrix.name }} ${{ matrix.ffi == 'FFI' && ' FFI' || '' }}
43
44
runs-on : ubuntu-latest
51
52
if : ${{ !matrix.continuous-only || inputs.continuous-run }}
52
53
uses : protocolbuffers/protobuf-ci/bazel-docker@v4
53
54
with :
54
- image : ${{ matrix.image || format('us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:7.1.2-{0}-d9624f2aa83cba3eaf906f751d75b36aacb9aa82 ', matrix.ruby) }}
55
+ image : ${{ matrix.image || format('us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:7.1.2-{0}-90d207f4e749b54c8792bbe974dfc70323b6566e ', matrix.ruby) }}
55
56
credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
56
57
bazel-cache : ruby_linux/${{ matrix.ruby }}
57
58
bazel : test //ruby/... //ruby/tests:ruby_version --test_env=KOKORO_RUBY_VERSION --test_env=BAZEL=true ${{ matrix.ffi == 'FFI' && '--//ruby:ffi=enabled --test_env=PROTOCOL_BUFFERS_RUBY_IMPLEMENTATION=FFI' || '' }}
@@ -132,14 +133,15 @@ jobs:
132
133
matrix :
133
134
include :
134
135
# Test both FFI and Native implementations on the highest and lowest
135
- # Ruby versions for CRuby, but only on Bazel 5.x .
136
+ # Ruby versions for CRuby.
136
137
# Quote versions numbers otherwise 3.0 will render as 3
137
138
- { version: "3.0", ffi: NATIVE }
138
139
- { version: "3.0", ffi: FFI, continuous-only: true }
139
140
- { version: "3.1", continuous-only: true }
140
141
- { version: "3.2", continuous-only: true }
141
- - { version: "3.3", ffi: NATIVE }
142
- - { version: "3.3", ffi: FFI }
142
+ - { version: "3.3", continuous-only: true }
143
+ - { version: "3.4", ffi: NATIVE }
144
+ - { version: "3.4", ffi: FFI }
143
145
144
146
name : ${{ matrix.continuous-only && inputs.continuous-prefix || '' }} MacOS Ruby ${{ matrix.version }}${{ matrix.ffi == 'FFI' && ' FFI' || '' }}
145
147
runs-on : macos-13
@@ -152,7 +154,7 @@ jobs:
152
154
153
155
- name : Pin Ruby version
154
156
if : ${{ !matrix.continuous-only || inputs.continuous-run }}
155
- uses : ruby/setup-ruby@961f85197f92e4842e3cb92a4f97bd8e010cdbaf # v1.165 .0
157
+ uses : ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207 .0
156
158
with :
157
159
ruby-version : ${{ matrix.version }}
158
160
@@ -176,15 +178,16 @@ jobs:
176
178
matrix :
177
179
include :
178
180
# Test both FFI and Native implementations on the highest and lowest
179
- # Ruby versions for CRuby and JRuby, but only on Bazel 5.x.
180
- - { name: Ruby 3.0, ruby: ruby-3.0.2, ffi: NATIVE}
181
- - { name: Ruby 3.0, ruby: ruby-3.0.2, ffi: FFI}
182
- - { name: Ruby 3.1, ruby: ruby-3.1.0}
183
- - { name: Ruby 3.2, ruby: ruby-3.2.0}
184
- - { name: Ruby 3.3, ruby: ruby-3.3.0, ffi: NATIVE }
185
- - { name: Ruby 3.3, ruby: ruby-3.3.0, ffi: FFI }
186
- - { name: JRuby 9.4, ruby: jruby-9.4.6.0, ffi: NATIVE }
187
- - { name: JRuby 9.4, ruby: jruby-9.4.6.0, ffi: FFI }
181
+ # Ruby versions for CRuby and JRuby.
182
+ - { name: Ruby 3.0, ruby: ruby-3.0.2, ffi: NATIVE, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:7.1.2-ruby-3.0.2-d9624f2aa83cba3eaf906f751d75b36aacb9aa82'}
183
+ - { name: Ruby 3.0, ruby: ruby-3.0.2, ffi: FFI, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:7.1.2-ruby-3.0.2-d9624f2aa83cba3eaf906f751d75b36aacb9aa82'}
184
+ - { name: Ruby 3.1, ruby: ruby-3.1.6}
185
+ - { name: Ruby 3.2, ruby: ruby-3.2.6}
186
+ - { name: Ruby 3.3, ruby: ruby-3.3.6}
187
+ - { name: Ruby 3.4, ruby: ruby-3.4.1, ffi: NATIVE }
188
+ - { name: Ruby 3.4, ruby: ruby-3.4.1, ffi: FFI }
189
+ - { name: JRuby 9.4, ruby: jruby-9.4.9.0, ffi: NATIVE }
190
+ - { name: JRuby 9.4, ruby: jruby-9.4.9.0, ffi: FFI }
188
191
name : ${{ inputs.continuous-prefix }} Install ${{ matrix.name }}${{ matrix.ffi == 'FFI' && ' FFI' || '' }}
189
192
runs-on : ubuntu-latest
190
193
steps :
@@ -197,7 +200,7 @@ jobs:
197
200
if : ${{ inputs.continuous-run }}
198
201
uses : protocolbuffers/protobuf-ci/bazel-docker@v4
199
202
with :
200
- image : us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:7.1.2-${{ matrix.ruby }}-d9624f2aa83cba3eaf906f751d75b36aacb9aa82
203
+ image : ${{ matrix.image || format(' us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:7.1.2-{0}-90d207f4e749b54c8792bbe974dfc70323b6566e', matrix.ruby) }}
201
204
credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
202
205
bazel-cache : ruby_install/${{ matrix.ruby }}_${{ matrix.bazel }}
203
206
bash : >
0 commit comments