76
76
path : |
77
77
docs/**/*
78
78
79
- build_alpine :
79
+ build_alpine_x86_64 :
80
+ # FIXME(SA): add aarch64 for Alpine Linux
81
+ # Right now github does not allow to execute JS-based actions (like
82
+ # download-artifact) inside alpine container, throwing the following
83
+ # message:
84
+ #
85
+ # JavaScript Actions in Alpine containers are only supported on x64 Linux
86
+ # runners. Detected Linux Arm64
80
87
needs : source
81
- name : alpine
82
88
runs-on : ubuntu-22.04
83
89
container :
84
90
image : alpine:3.18
@@ -114,7 +120,7 @@ jobs:
114
120
name : scripts-${{ needs.source.outputs.gem_version }}
115
121
- name : Install build environment
116
122
env :
117
- SUPPORTED_RUBY_VERSIONS : " 3.1 3.2 3.3"
123
+ SUPPORTED_RUBY_VERSIONS : " 3.1 3.2 3.3 3.4 "
118
124
run : |
119
125
bash bin/jenkins/install-rubies.sh
120
126
- uses : actions/download-artifact@v4
@@ -123,7 +129,7 @@ jobs:
123
129
name : couchbase-${{ needs.source.outputs.gem_version }}
124
130
- name : Build gem
125
131
env :
126
- SUPPORTED_RUBY_VERSIONS : " 3.1 3.2 3.3"
132
+ SUPPORTED_RUBY_VERSIONS : " 3.1 3.2 3.3 3.4 "
127
133
BUNDLE_ALLOW_ROOT : true
128
134
run : |
129
135
bash bin/jenkins/build-gem.sh
@@ -135,14 +141,15 @@ jobs:
135
141
136
142
build_linux_x86_64 :
137
143
needs : source
138
- runs-on : ubuntu-20 .04
144
+ runs-on : ubuntu-22 .04
139
145
strategy :
140
146
fail-fast : false
141
147
matrix :
142
148
ruby :
143
149
- ' 3.1'
144
150
- ' 3.2'
145
151
- ' 3.3'
152
+ - ' 3.4'
146
153
steps :
147
154
-
uses :
hendrikmuhs/[email protected]
148
155
with :
@@ -190,9 +197,13 @@ jobs:
190
197
with :
191
198
path : pkg/binary/3.3
192
199
name : couchbase-${{ needs.source.outputs.gem_version }}-x86_64-linux-3.3
200
+ - uses : actions/download-artifact@v4
201
+ with :
202
+ path : pkg/binary/3.4
203
+ name : couchbase-${{ needs.source.outputs.gem_version }}-x86_64-linux-3.4
193
204
- uses : ruby/setup-ruby@v1
194
205
with :
195
- ruby-version : 3.3
206
+ ruby-version : 3.4
196
207
- name : Repackage
197
208
run : |
198
209
ruby bin/jenkins/repackage-extension.rb
@@ -202,6 +213,80 @@ jobs:
202
213
path : |
203
214
pkg/fat/*.gem
204
215
216
+ build_linux_aarch64 :
217
+ needs : source
218
+ runs-on : ubuntu-22.04-arm
219
+ strategy :
220
+ fail-fast : false
221
+ matrix :
222
+ ruby :
223
+ - ' 3.1'
224
+ - ' 3.2'
225
+ - ' 3.3'
226
+ - ' 3.4'
227
+ steps :
228
+ -
uses :
hendrikmuhs/[email protected]
229
+ with :
230
+ max-size : 2G
231
+ key : ${{ github.job }}-${{ matrix.ruby }}
232
+ - uses : ruby/setup-ruby@v1
233
+ with :
234
+ ruby-version : ${{ matrix.ruby }}
235
+ - uses : actions/download-artifact@v4
236
+ with :
237
+ name : couchbase-${{ needs.source.outputs.gem_version }}
238
+ - name : Precompile
239
+ env :
240
+ CB_STATIC_BORINGSSL : 1
241
+ CB_STATIC_STDLIB : 1
242
+ CB_REMOVE_EXT_DIRECTORY : 1
243
+ run : |
244
+ gem install gem-compiler
245
+ gem compile --strip --prune couchbase-${{ needs.source.outputs.gem_version }}.gem
246
+ - uses : actions/upload-artifact@v4
247
+ with :
248
+ retention-days : 1
249
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-${{ matrix.ruby }}
250
+ path : |
251
+ *-aarch64-linux.gem
252
+
253
+ repackage_linux_aarch64 :
254
+ needs :
255
+ - source
256
+ - build_linux_aarch64
257
+ runs-on : ubuntu-22.04-arm
258
+ steps :
259
+ - uses : actions/download-artifact@v4
260
+ with :
261
+ name : scripts-${{ needs.source.outputs.gem_version }}
262
+ - uses : actions/download-artifact@v4
263
+ with :
264
+ path : pkg/binary/3.1
265
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-3.1
266
+ - uses : actions/download-artifact@v4
267
+ with :
268
+ path : pkg/binary/3.2
269
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-3.2
270
+ - uses : actions/download-artifact@v4
271
+ with :
272
+ path : pkg/binary/3.3
273
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-3.3
274
+ - uses : actions/download-artifact@v4
275
+ with :
276
+ path : pkg/binary/3.4
277
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-3.4
278
+ - uses : ruby/setup-ruby@v1
279
+ with :
280
+ ruby-version : 3.4
281
+ - name : Repackage
282
+ run : |
283
+ ruby bin/jenkins/repackage-extension.rb
284
+ - uses : actions/upload-artifact@v4
285
+ with :
286
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux
287
+ path : |
288
+ pkg/fat/*.gem
289
+
205
290
build_macos_arm64 :
206
291
needs : source
207
292
runs-on : macos-14
@@ -212,6 +297,7 @@ jobs:
212
297
- ' 3.1'
213
298
- ' 3.2'
214
299
- ' 3.3'
300
+ - ' 3.4'
215
301
steps :
216
302
-
uses :
hendrikmuhs/[email protected]
217
303
with :
@@ -259,9 +345,13 @@ jobs:
259
345
with :
260
346
path : pkg/binary/3.3
261
347
name : couchbase-${{ needs.source.outputs.gem_version }}-arm64-darwin-3.3
348
+ - uses : actions/download-artifact@v4
349
+ with :
350
+ path : pkg/binary/3.4
351
+ name : couchbase-${{ needs.source.outputs.gem_version }}-arm64-darwin-3.4
262
352
- uses : ruby/setup-ruby@v1
263
353
with :
264
- ruby-version : 3.3
354
+ ruby-version : 3.4
265
355
- name : Repackage
266
356
run : |
267
357
ruby bin/jenkins/repackage-extension.rb
@@ -281,6 +371,7 @@ jobs:
281
371
- ' 3.1'
282
372
- ' 3.2'
283
373
- ' 3.3'
374
+ - ' 3.4'
284
375
steps :
285
376
-
uses :
hendrikmuhs/[email protected]
286
377
with :
@@ -328,9 +419,13 @@ jobs:
328
419
with :
329
420
path : pkg/binary/3.3
330
421
name : couchbase-${{ needs.source.outputs.gem_version }}-x86_64-darwin-3.3
422
+ - uses : actions/download-artifact@v4
423
+ with :
424
+ path : pkg/binary/3.4
425
+ name : couchbase-${{ needs.source.outputs.gem_version }}-x86_64-darwin-3.4
331
426
- uses : ruby/setup-ruby@v1
332
427
with :
333
- ruby-version : 3.3
428
+ ruby-version : 3.4
334
429
- name : Repackage
335
430
run : |
336
431
ruby bin/jenkins/repackage-extension.rb
@@ -353,6 +448,7 @@ jobs:
353
448
- ' 3.1'
354
449
- ' 3.2'
355
450
- ' 3.3'
451
+ - ' 3.4'
356
452
steps :
357
453
- uses : actions/download-artifact@v4
358
454
with :
@@ -413,6 +509,7 @@ jobs:
413
509
- ' 3.1'
414
510
- ' 3.2'
415
511
- ' 3.3'
512
+ - ' 3.4'
416
513
steps :
417
514
- uses : actions/download-artifact@v4
418
515
with :
@@ -476,6 +573,7 @@ jobs:
476
573
- ' 3.1'
477
574
- ' 3.2'
478
575
- ' 3.3'
576
+ - ' 3.4'
479
577
steps :
480
578
- uses : actions/download-artifact@v4
481
579
with :
@@ -631,6 +729,7 @@ jobs:
631
729
- ' 3.1'
632
730
- ' 3.2'
633
731
- ' 3.3'
732
+ - ' 3.4'
634
733
steps :
635
734
- uses : ruby/setup-ruby@v1
636
735
with :
@@ -677,9 +776,13 @@ jobs:
677
776
with :
678
777
path : pkg/binary/3.3
679
778
name : couchbase-${{ needs.source.outputs.gem_version }}-x64-mingw-3.3
779
+ - uses : actions/download-artifact@v4
780
+ with :
781
+ path : pkg/binary/3.4
782
+ name : couchbase-${{ needs.source.outputs.gem_version }}-x64-mingw-3.4
680
783
- uses : ruby/setup-ruby@v1
681
784
with :
682
- ruby-version : 3.3
785
+ ruby-version : 3.4
683
786
- name : Repackage
684
787
run : |
685
788
ruby bin/jenkins/repackage-extension.rb
@@ -711,6 +814,7 @@ jobs:
711
814
# - '3.1'
712
815
# - '3.2'
713
816
# - '3.3'
817
+ # - '3.4'
714
818
# steps:
715
819
# - uses: actions/download-artifact@v4
716
820
# with:
0 commit comments