Skip to content

Commit bd66789

Browse files
committed
Add support for Ruby 4.0
1 parent c6a8af1 commit bd66789

1 file changed

Lines changed: 36 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
name: scripts-${{ needs.source.outputs.gem_version }}
121121
- name: Install build environment
122122
env:
123-
SUPPORTED_RUBY_VERSIONS: "3.1 3.2 3.3 3.4"
123+
SUPPORTED_RUBY_VERSIONS: "3.1 3.2 3.3 3.4 4.0"
124124
run: |
125125
bash bin/jenkins/install-rubies.sh
126126
- uses: actions/download-artifact@v4
@@ -129,7 +129,7 @@ jobs:
129129
name: couchbase-${{ needs.source.outputs.gem_version }}
130130
- name: Build gem
131131
env:
132-
SUPPORTED_RUBY_VERSIONS: "3.1 3.2 3.3 3.4"
132+
SUPPORTED_RUBY_VERSIONS: "3.1 3.2 3.3 3.4 4.0"
133133
BUNDLE_ALLOW_ROOT: true
134134
run: |
135135
bash bin/jenkins/build-gem.sh
@@ -150,6 +150,7 @@ jobs:
150150
- '3.2'
151151
- '3.3'
152152
- '3.4'
153+
- '4.0'
153154
steps:
154155
- uses: hendrikmuhs/ccache-action@v1.2
155156
with:
@@ -201,9 +202,13 @@ jobs:
201202
with:
202203
path: pkg/binary/3.4
203204
name: couchbase-${{ needs.source.outputs.gem_version }}-x86_64-linux-3.4
205+
- uses: actions/download-artifact@v4
206+
with:
207+
path: pkg/binary/4.0
208+
name: couchbase-${{ needs.source.outputs.gem_version }}-x86_64-linux-4.0
204209
- uses: ruby/setup-ruby@v1
205210
with:
206-
ruby-version: 3.4
211+
ruby-version: 4.0
207212
- name: Repackage
208213
run: |
209214
ruby bin/jenkins/repackage-extension.rb
@@ -224,6 +229,7 @@ jobs:
224229
- '3.2'
225230
- '3.3'
226231
- '3.4'
232+
- '4.0'
227233
steps:
228234
- uses: hendrikmuhs/ccache-action@v1.2
229235
with:
@@ -275,9 +281,13 @@ jobs:
275281
with:
276282
path: pkg/binary/3.4
277283
name: couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-3.4
284+
- uses: actions/download-artifact@v4
285+
with:
286+
path: pkg/binary/4.0
287+
name: couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-4.0
278288
- uses: ruby/setup-ruby@v1
279289
with:
280-
ruby-version: 3.4
290+
ruby-version: 4.0
281291
- name: Repackage
282292
run: |
283293
ruby bin/jenkins/repackage-extension.rb
@@ -298,6 +308,7 @@ jobs:
298308
- '3.2'
299309
- '3.3'
300310
- '3.4'
311+
- '4.0'
301312
steps:
302313
- uses: hendrikmuhs/ccache-action@v1.2
303314
with:
@@ -349,9 +360,13 @@ jobs:
349360
with:
350361
path: pkg/binary/3.4
351362
name: couchbase-${{ needs.source.outputs.gem_version }}-arm64-darwin-3.4
363+
- uses: actions/download-artifact@v4
364+
with:
365+
path: pkg/binary/4.0
366+
name: couchbase-${{ needs.source.outputs.gem_version }}-arm64-darwin-4.0
352367
- uses: ruby/setup-ruby@v1
353368
with:
354-
ruby-version: 3.4
369+
ruby-version: 4.0
355370
- name: Repackage
356371
run: |
357372
ruby bin/jenkins/repackage-extension.rb
@@ -372,6 +387,7 @@ jobs:
372387
- '3.2'
373388
- '3.3'
374389
- '3.4'
390+
- '4.0'
375391
steps:
376392
- uses: hendrikmuhs/ccache-action@v1.2
377393
with:
@@ -423,9 +439,13 @@ jobs:
423439
with:
424440
path: pkg/binary/3.4
425441
name: couchbase-${{ needs.source.outputs.gem_version }}-x86_64-darwin-3.4
442+
- uses: actions/download-artifact@v4
443+
with:
444+
path: pkg/binary/4.0
445+
name: couchbase-${{ needs.source.outputs.gem_version }}-x86_64-darwin-4.0
426446
- uses: ruby/setup-ruby@v1
427447
with:
428-
ruby-version: 3.4
448+
ruby-version: 4.0
429449
- name: Repackage
430450
run: |
431451
ruby bin/jenkins/repackage-extension.rb
@@ -449,6 +469,7 @@ jobs:
449469
- '3.2'
450470
- '3.3'
451471
- '3.4'
472+
- '4.0'
452473
steps:
453474
- uses: actions/download-artifact@v4
454475
with:
@@ -510,6 +531,7 @@ jobs:
510531
- '3.2'
511532
- '3.3'
512533
- '3.4'
534+
- '4.0'
513535
steps:
514536
- uses: actions/download-artifact@v4
515537
with:
@@ -574,6 +596,7 @@ jobs:
574596
- '3.2'
575597
- '3.3'
576598
- '3.4'
599+
- '4.0'
577600
steps:
578601
- uses: actions/download-artifact@v4
579602
with:
@@ -732,6 +755,7 @@ jobs:
732755
- '3.2'
733756
- '3.3'
734757
- '3.4'
758+
- '4.0'
735759
steps:
736760
- uses: ruby/setup-ruby@v1
737761
with:
@@ -782,9 +806,13 @@ jobs:
782806
with:
783807
path: pkg/binary/3.4
784808
name: couchbase-${{ needs.source.outputs.gem_version }}-x64-mingw-3.4
809+
- uses: actions/download-artifact@v4
810+
with:
811+
path: pkg/binary/4.0
812+
name: couchbase-${{ needs.source.outputs.gem_version }}-x64-mingw-4.0
785813
- uses: ruby/setup-ruby@v1
786814
with:
787-
ruby-version: 3.4
815+
ruby-version: 4.0
788816
- name: Repackage
789817
run: |
790818
ruby bin/jenkins/repackage-extension.rb
@@ -817,6 +845,7 @@ jobs:
817845
# - '3.2'
818846
# - '3.3'
819847
# - '3.4'
848+
# - '4.0'
820849
# steps:
821850
# - uses: actions/download-artifact@v4
822851
# with:

0 commit comments

Comments
 (0)