76
76
path : |
77
77
docs/**/*
78
78
79
- build_alpine :
79
+ build_alpine_x86_64 :
80
80
needs : source
81
81
name : alpine
82
82
runs-on : ubuntu-22.04
@@ -114,7 +114,7 @@ jobs:
114
114
name : scripts-${{ needs.source.outputs.gem_version }}
115
115
- name : Install build environment
116
116
env :
117
- SUPPORTED_RUBY_VERSIONS : " 3.1 3.2 3.3"
117
+ SUPPORTED_RUBY_VERSIONS : " 3.1 3.2 3.3 3.4 "
118
118
run : |
119
119
bash bin/jenkins/install-rubies.sh
120
120
- uses : actions/download-artifact@v4
@@ -123,7 +123,7 @@ jobs:
123
123
name : couchbase-${{ needs.source.outputs.gem_version }}
124
124
- name : Build gem
125
125
env :
126
- SUPPORTED_RUBY_VERSIONS : " 3.1 3.2 3.3"
126
+ SUPPORTED_RUBY_VERSIONS : " 3.1 3.2 3.3 3.4 "
127
127
BUNDLE_ALLOW_ROOT : true
128
128
run : |
129
129
bash bin/jenkins/build-gem.sh
@@ -133,16 +133,74 @@ jobs:
133
133
path : |
134
134
pkg/fat/*.gem
135
135
136
+ build_alpine_aarch64 :
137
+ needs : source
138
+ name : alpine
139
+ runs-on : ubuntu-22.04-arm
140
+ container :
141
+ image : alpine:3.18
142
+ steps :
143
+ - name : Install build environment
144
+ run : |
145
+ apk update
146
+ apk add --no-cache \
147
+ bash \
148
+ build-base \
149
+ ccache \
150
+ cmake \
151
+ curl \
152
+ g++ \
153
+ gcc \
154
+ git \
155
+ linux-headers \
156
+ make \
157
+ openssl \
158
+ openssl-dev \
159
+ readline-dev \
160
+ ruby \
161
+ tar \
162
+ xz \
163
+ yaml-dev \
164
+ zlib-dev
165
+ -
uses :
hendrikmuhs/[email protected]
166
+ with :
167
+ max-size : 2G
168
+ key : ${{ github.job }}
169
+ - uses : actions/download-artifact@v4
170
+ with :
171
+ name : scripts-${{ needs.source.outputs.gem_version }}
172
+ - name : Install build environment
173
+ env :
174
+ SUPPORTED_RUBY_VERSIONS : " 3.1 3.2 3.3 3.4"
175
+ run : |
176
+ bash bin/jenkins/install-rubies.sh
177
+ - uses : actions/download-artifact@v4
178
+ with :
179
+ path : pkg
180
+ name : couchbase-${{ needs.source.outputs.gem_version }}
181
+ - name : Build gem
182
+ env :
183
+ SUPPORTED_RUBY_VERSIONS : " 3.1 3.2 3.3 3.4"
184
+ BUNDLE_ALLOW_ROOT : true
185
+ run : |
186
+ bash bin/jenkins/build-gem.sh
187
+ - uses : actions/upload-artifact@v4
188
+ with :
189
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-musl
190
+ path : |
191
+ pkg/fat/*.gem
192
+
136
193
build_linux_x86_64 :
137
194
needs : source
138
- runs-on : ubuntu-20 .04
195
+ runs-on : ubuntu-22 .04
139
196
strategy :
140
197
fail-fast : false
141
198
matrix :
142
199
ruby :
143
200
- ' 3.1'
144
201
- ' 3.2'
145
202
- ' 3.3'
203
+ - ' 3.4'
146
204
steps :
147
205
-
uses :
hendrikmuhs/[email protected]
148
206
with :
@@ -190,9 +248,13 @@ jobs:
190
248
with :
191
249
path : pkg/binary/3.3
192
250
name : couchbase-${{ needs.source.outputs.gem_version }}-x86_64-linux-3.3
251
+ - uses : actions/download-artifact@v4
252
+ with :
253
+ path : pkg/binary/3.4
254
+ name : couchbase-${{ needs.source.outputs.gem_version }}-x86_64-linux-3.4
193
255
- uses : ruby/setup-ruby@v1
194
256
with :
195
- ruby-version : 3.3
257
+ ruby-version : 3.4
196
258
- name : Repackage
197
259
run : |
198
260
ruby bin/jenkins/repackage-extension.rb
@@ -202,6 +264,80 @@ jobs:
202
264
path : |
203
265
pkg/fat/*.gem
204
266
267
+ build_linux_aarch64 :
268
+ needs : source
269
+ runs-on : ubuntu-22.04-arm
270
+ strategy :
271
+ fail-fast : false
272
+ matrix :
273
+ ruby :
274
+ - ' 3.1'
275
+ - ' 3.2'
276
+ - ' 3.3'
277
+ - ' 3.4'
278
+ steps :
279
+ -
uses :
hendrikmuhs/[email protected]
280
+ with :
281
+ max-size : 2G
282
+ key : ${{ github.job }}-${{ matrix.ruby }}
283
+ - uses : ruby/setup-ruby@v1
284
+ with :
285
+ ruby-version : ${{ matrix.ruby }}
286
+ - uses : actions/download-artifact@v4
287
+ with :
288
+ name : couchbase-${{ needs.source.outputs.gem_version }}
289
+ - name : Precompile
290
+ env :
291
+ CB_STATIC_BORINGSSL : 1
292
+ CB_STATIC_STDLIB : 1
293
+ CB_REMOVE_EXT_DIRECTORY : 1
294
+ run : |
295
+ gem install gem-compiler
296
+ gem compile --strip --prune couchbase-${{ needs.source.outputs.gem_version }}.gem
297
+ - uses : actions/upload-artifact@v4
298
+ with :
299
+ retention-days : 1
300
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-${{ matrix.ruby }}
301
+ path : |
302
+ *-aarch64-linux.gem
303
+
304
+ repackage_linux_aarch64 :
305
+ needs :
306
+ - source
307
+ - build_linux_aarch64
308
+ runs-on : ubuntu-22.04-arm
309
+ steps :
310
+ - uses : actions/download-artifact@v4
311
+ with :
312
+ name : scripts-${{ needs.source.outputs.gem_version }}
313
+ - uses : actions/download-artifact@v4
314
+ with :
315
+ path : pkg/binary/3.1
316
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-3.1
317
+ - uses : actions/download-artifact@v4
318
+ with :
319
+ path : pkg/binary/3.2
320
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-3.2
321
+ - uses : actions/download-artifact@v4
322
+ with :
323
+ path : pkg/binary/3.3
324
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-3.3
325
+ - uses : actions/download-artifact@v4
326
+ with :
327
+ path : pkg/binary/3.4
328
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux-3.4
329
+ - uses : ruby/setup-ruby@v1
330
+ with :
331
+ ruby-version : 3.4
332
+ - name : Repackage
333
+ run : |
334
+ ruby bin/jenkins/repackage-extension.rb
335
+ - uses : actions/upload-artifact@v4
336
+ with :
337
+ name : couchbase-${{ needs.source.outputs.gem_version }}-aarch64-linux
338
+ path : |
339
+ pkg/fat/*.gem
340
+
205
341
build_macos_arm64 :
206
342
needs : source
207
343
runs-on : macos-14
@@ -212,6 +348,7 @@ jobs:
212
348
- ' 3.1'
213
349
- ' 3.2'
214
350
- ' 3.3'
351
+ - ' 3.4'
215
352
steps :
216
353
-
uses :
hendrikmuhs/[email protected]
217
354
with :
@@ -259,9 +396,13 @@ jobs:
259
396
with :
260
397
path : pkg/binary/3.3
261
398
name : couchbase-${{ needs.source.outputs.gem_version }}-arm64-darwin-3.3
399
+ - uses : actions/download-artifact@v4
400
+ with :
401
+ path : pkg/binary/3.4
402
+ name : couchbase-${{ needs.source.outputs.gem_version }}-arm64-darwin-3.4
262
403
- uses : ruby/setup-ruby@v1
263
404
with :
264
- ruby-version : 3.3
405
+ ruby-version : 3.4
265
406
- name : Repackage
266
407
run : |
267
408
ruby bin/jenkins/repackage-extension.rb
@@ -281,6 +422,7 @@ jobs:
281
422
- ' 3.1'
282
423
- ' 3.2'
283
424
- ' 3.3'
425
+ - ' 3.4'
284
426
steps :
285
427
-
uses :
hendrikmuhs/[email protected]
286
428
with :
@@ -328,9 +470,13 @@ jobs:
328
470
with :
329
471
path : pkg/binary/3.3
330
472
name : couchbase-${{ needs.source.outputs.gem_version }}-x86_64-darwin-3.3
473
+ - uses : actions/download-artifact@v4
474
+ with :
475
+ path : pkg/binary/3.4
476
+ name : couchbase-${{ needs.source.outputs.gem_version }}-x86_64-darwin-3.4
331
477
- uses : ruby/setup-ruby@v1
332
478
with :
333
- ruby-version : 3.3
479
+ ruby-version : 3.4
334
480
- name : Repackage
335
481
run : |
336
482
ruby bin/jenkins/repackage-extension.rb
@@ -353,6 +499,7 @@ jobs:
353
499
- ' 3.1'
354
500
- ' 3.2'
355
501
- ' 3.3'
502
+ - ' 3.4'
356
503
steps :
357
504
- uses : actions/download-artifact@v4
358
505
with :
@@ -413,6 +560,7 @@ jobs:
413
560
- ' 3.1'
414
561
- ' 3.2'
415
562
- ' 3.3'
563
+ - ' 3.4'
416
564
steps :
417
565
- uses : actions/download-artifact@v4
418
566
with :
@@ -476,6 +624,7 @@ jobs:
476
624
- ' 3.1'
477
625
- ' 3.2'
478
626
- ' 3.3'
627
+ - ' 3.4'
479
628
steps :
480
629
- uses : actions/download-artifact@v4
481
630
with :
@@ -631,6 +780,7 @@ jobs:
631
780
- ' 3.1'
632
781
- ' 3.2'
633
782
- ' 3.3'
783
+ - ' 3.4'
634
784
steps :
635
785
- uses : ruby/setup-ruby@v1
636
786
with :
@@ -677,9 +827,13 @@ jobs:
677
827
with :
678
828
path : pkg/binary/3.3
679
829
name : couchbase-${{ needs.source.outputs.gem_version }}-x64-mingw-3.3
830
+ - uses : actions/download-artifact@v4
831
+ with :
832
+ path : pkg/binary/3.4
833
+ name : couchbase-${{ needs.source.outputs.gem_version }}-x64-mingw-3.4
680
834
- uses : ruby/setup-ruby@v1
681
835
with :
682
- ruby-version : 3.3
836
+ ruby-version : 3.4
683
837
- name : Repackage
684
838
run : |
685
839
ruby bin/jenkins/repackage-extension.rb
@@ -711,6 +865,7 @@ jobs:
711
865
# - '3.1'
712
866
# - '3.2'
713
867
# - '3.3'
868
+ # - '3.4'
714
869
# steps:
715
870
# - uses: actions/download-artifact@v4
716
871
# with:
0 commit comments