@@ -19,16 +19,14 @@ jobs:
19
19
include :
20
20
# Test both FFI and Native implementations on the highest and lowest
21
21
# Ruby versions for CRuby and JRuby, but only on Bazel 5.x.
22
- - { name: Ruby 2.7, ruby: ruby-2.7.0, ffi: NATIVE }
23
- # TODO Re-enable these once flakes are fixed
24
- # - { name: Ruby 2.7, ruby: ruby-2.7.0, ffi: FFI }
25
22
- { name: Ruby 3.0, ruby: ruby-3.0.2 }
26
23
- { name: Ruby 3.1, ruby: ruby-3.1.0 }
27
24
- { name: Ruby 3.2, ruby: ruby-3.2.0, ffi: NATIVE }
25
+ - { name: Ruby 3.3, ruby: ruby-3.3.0, ffi: NATIVE }
28
26
# TODO Re-enable these once flakes are fixed
29
27
# - { name: Ruby 3.2, ruby: ruby-3.2.0, ffi: FFI }
30
- - { name: JRuby 9.4, ruby: jruby-9.4.3 .0, ffi: NATIVE }
31
- - { name: JRuby 9.4, ruby: jruby-9.4.3 .0, ffi: FFI }
28
+ - { name: JRuby 9.4, ruby: jruby-9.4.6 .0, ffi: NATIVE }
29
+ - { name: JRuby 9.4, ruby: jruby-9.4.6 .0, ffi: FFI }
32
30
33
31
name : Linux ${{ matrix.name }}${{ matrix.ffi == 'FFI' && ' FFI' || '' }}
34
32
runs-on : ubuntu-latest
40
38
- name : Run tests
41
39
uses : protocolbuffers/protobuf-ci/bazel-docker@v2
42
40
with :
43
- image : ${{ matrix.image || format('us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:{0}-6.3.0-66964dc8b07b6d1fc73a5cc14e59e84c1c534cea ', matrix.ruby) }}
41
+ image : ${{ matrix.image || format('us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:{0}-6.3.0-384d5abe83a791c6b1ce04f5d7bc0b1f84a30d38 ', matrix.ruby) }}
44
42
credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
45
43
bazel-cache : ruby_linux/${{ matrix.ruby }}_${{ matrix.bazel }}
46
44
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' || '' }}
67
65
with :
68
66
image : i386/ruby:2.7.3-buster
69
67
credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
68
+ # Pin to Ruby 2.7 compatible bundler version.
70
69
command : >-
71
70
/bin/bash -cex '
72
- gem install bundler;
71
+ gem install bundler -v 2.4.22 ;
73
72
cd /workspace/ruby;
74
73
bundle;
75
74
PROTOC=/workspace/${{ steps.cross-compile.outputs.protoc }} rake;
98
97
with :
99
98
image : arm64v8/ruby:2.7.3-buster
100
99
credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
100
+ # Pin to Ruby 2.7 compatible bundler version.
101
101
command : >-
102
102
/bin/bash -cex '
103
- gem install bundler;
103
+ gem install bundler -v 2.4.22 ;
104
104
cd /workspace/ruby;
105
105
bundle;
106
106
PROTOC=/workspace/${{ steps.cross-compile.outputs.protoc }} rake;
@@ -125,15 +125,15 @@ jobs:
125
125
# - { version: "3.2", ffi: FFI }
126
126
127
127
name : MacOS Ruby ${{ matrix.version }}${{ matrix.ffi == 'FFI' && ' FFI' || '' }}
128
- runs-on : macos-12
128
+ runs-on : macos-13
129
129
steps :
130
130
- name : Checkout pending changes
131
131
uses : protocolbuffers/protobuf-ci/checkout@v2
132
132
with :
133
133
ref : ${{ inputs.safe-checkout }}
134
134
135
135
- name : Pin Ruby version
136
- uses : ruby/setup-ruby@ee26e27437bde475b19a6bf8cb73c9fa658876a2 # v1.134 .0
136
+ uses : ruby/setup-ruby@961f85197f92e4842e3cb92a4f97bd8e010cdbaf # v1.165 .0
137
137
with :
138
138
ruby-version : ${{ matrix.version }}
139
139
0 commit comments