Skip to content

Commit 6bce6f2

Browse files
cdxkerskeptrunedev
authored andcommitted
ci: enable arm builds for Trieve
1 parent 20e114d commit 6bce6f2

File tree

2 files changed

+51
-24
lines changed

2 files changed

+51
-24
lines changed

.github/workflows/push-frontends.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@ on:
2020
jobs:
2121
build_chat:
2222
name: Push Chat Image
23-
runs-on: blacksmith-2vcpu-ubuntu-2204
23+
runs-on: ${{ matrix.runner }}
24+
strategy:
25+
matrix:
26+
runner: [blacksmith-2vcpu-ubuntu-2204]
27+
platform: [linux/amd64, linux/arm64]
28+
exclude:
29+
- runner: blacksmith-2vcpu-ubuntu-2204
30+
platform: linux/arm64
31+
- runner: blacksmith-2vcpu-ubuntu-2204-arm
32+
platform: linux/amd64
2433
steps:
2534
- name: Checkout the repo
2635
uses: actions/checkout@v4
@@ -51,7 +60,7 @@ jobs:
5160
- name: Build and push Docker image
5261
uses: useblacksmith/[email protected]
5362
with:
54-
# platforms: linux/amd64,linux/arm64
63+
platforms: ${{ matrix.platform }}
5564
file: frontends/chat/Dockerfile
5665
context: .
5766
push: true
@@ -60,7 +69,16 @@ jobs:
6069

6170
build_search:
6271
name: Push Search Image
63-
runs-on: blacksmith-2vcpu-ubuntu-2204
72+
runs-on: ${{ matrix.runner }}
73+
strategy:
74+
matrix:
75+
runner: [blacksmith-2vcpu-ubuntu-2204]
76+
platform: [linux/amd64, linux/arm64]
77+
exclude:
78+
- runner: blacksmith-2vcpu-ubuntu-2204
79+
platform: linux/arm64
80+
- runner: blacksmith-2vcpu-ubuntu-2204-arm
81+
platform: linux/amd64
6482
steps:
6583
- name: Checkout the repo
6684
uses: actions/checkout@v4
@@ -91,7 +109,7 @@ jobs:
91109
- name: Build and push Docker image
92110
uses: useblacksmith/[email protected]
93111
with:
94-
# platforms: linux/amd64,linux/arm64
112+
platforms: ${{ matrix.platform }}
95113
file: frontends/search/Dockerfile
96114
context: .
97115
push: true
@@ -100,7 +118,16 @@ jobs:
100118

101119
build_dashboard:
102120
name: Push Dashboard Image
103-
runs-on: blacksmith-2vcpu-ubuntu-2204
121+
runs-on: ${{ matrix.runner }}
122+
strategy:
123+
matrix:
124+
runner: [blacksmith-2vcpu-ubuntu-2204]
125+
platform: [linux/amd64, linux/arm64]
126+
exclude:
127+
- runner: blacksmith-2vcpu-ubuntu-2204
128+
platform: linux/arm64
129+
- runner: blacksmith-2vcpu-ubuntu-2204-arm
130+
platform: linux/amd64
104131
steps:
105132
- name: Checkout the repo
106133
uses: actions/checkout@v4
@@ -131,7 +158,7 @@ jobs:
131158
- name: Build and push Docker image
132159
uses: useblacksmith/[email protected]
133160
with:
134-
# platforms: linux/amd64,linux/arm64
161+
platforms: ${{ matrix.platform }}
135162
file: frontends/dashboard/Dockerfile
136163
context: .
137164
push: true

.github/workflows/push-server.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
matrix:
2121
runner: [blacksmith-8vcpu-ubuntu-2204]
22-
platform: [linux/amd64]
22+
platform: [linux/amd64, linux/arm64]
2323
exclude:
2424
- runner: blacksmith-8vcpu-ubuntu-2204
2525
platform: linux/arm64
@@ -69,7 +69,7 @@ jobs:
6969
strategy:
7070
matrix:
7171
runner: [blacksmith-8vcpu-ubuntu-2204]
72-
platform: [linux/amd64]
72+
platform: [linux/amd64, linux/arm64]
7373
exclude:
7474
- runner: blacksmith-8vcpu-ubuntu-2204
7575
platform: linux/arm64
@@ -115,7 +115,7 @@ jobs:
115115
strategy:
116116
matrix:
117117
runner: [blacksmith-8vcpu-ubuntu-2204]
118-
platform: [linux/amd64]
118+
platform: [linux/amd64, linux/arm64]
119119
exclude:
120120
- runner: blacksmith-8vcpu-ubuntu-2204
121121
platform: linux/arm64
@@ -162,7 +162,7 @@ jobs:
162162
strategy:
163163
matrix:
164164
runner: [blacksmith-8vcpu-ubuntu-2204]
165-
platform: [linux/amd64]
165+
platform: [linux/amd64, linux/arm64]
166166
exclude:
167167
- runner: blacksmith-8vcpu-ubuntu-2204
168168
platform: linux/arm64
@@ -208,7 +208,7 @@ jobs:
208208
strategy:
209209
matrix:
210210
runner: [blacksmith-8vcpu-ubuntu-2204]
211-
platform: [linux/amd64]
211+
platform: [linux/amd64, linux/arm64]
212212
exclude:
213213
- runner: blacksmith-8vcpu-ubuntu-2204
214214
platform: linux/arm64
@@ -254,7 +254,7 @@ jobs:
254254
strategy:
255255
matrix:
256256
runner: [blacksmith-8vcpu-ubuntu-2204]
257-
platform: [linux/amd64]
257+
platform: [linux/amd64, linux/arm64]
258258
exclude:
259259
- runner: blacksmith-8vcpu-ubuntu-2204
260260
platform: linux/arm64
@@ -300,7 +300,7 @@ jobs:
300300
strategy:
301301
matrix:
302302
runner: [blacksmith-8vcpu-ubuntu-2204]
303-
platform: [linux/amd64]
303+
platform: [linux/amd64, linux/arm64]
304304
exclude:
305305
- runner: blacksmith-8vcpu-ubuntu-2204
306306
platform: linux/arm64
@@ -346,7 +346,7 @@ jobs:
346346
strategy:
347347
matrix:
348348
runner: [blacksmith-8vcpu-ubuntu-2204]
349-
platform: [linux/amd64]
349+
platform: [linux/amd64, linux/arm64]
350350
exclude:
351351
- runner: blacksmith-8vcpu-ubuntu-2204
352352
platform: linux/arm64
@@ -392,7 +392,7 @@ jobs:
392392
strategy:
393393
matrix:
394394
runner: [blacksmith-8vcpu-ubuntu-2204]
395-
platform: [linux/amd64]
395+
platform: [linux/amd64, linux/arm64]
396396
exclude:
397397
- runner: blacksmith-8vcpu-ubuntu-2204
398398
platform: linux/arm64
@@ -438,7 +438,7 @@ jobs:
438438
strategy:
439439
matrix:
440440
runner: [blacksmith-8vcpu-ubuntu-2204]
441-
platform: [linux/amd64]
441+
platform: [linux/amd64, linux/arm64]
442442
exclude:
443443
- runner: blacksmith-8vcpu-ubuntu-2204
444444
platform: linux/arm64
@@ -484,7 +484,7 @@ jobs:
484484
strategy:
485485
matrix:
486486
runner: [blacksmith-8vcpu-ubuntu-2204]
487-
platform: [linux/amd64]
487+
platform: [linux/amd64, linux/arm64]
488488
exclude:
489489
- runner: blacksmith-8vcpu-ubuntu-2204
490490
platform: linux/arm64
@@ -530,7 +530,7 @@ jobs:
530530
strategy:
531531
matrix:
532532
runner: [blacksmith-8vcpu-ubuntu-2204]
533-
platform: [linux/amd64]
533+
platform: [linux/amd64, linux/arm64]
534534
exclude:
535535
- runner: blacksmith-8vcpu-ubuntu-2204
536536
platform: linux/arm64
@@ -576,7 +576,7 @@ jobs:
576576
strategy:
577577
matrix:
578578
runner: [blacksmith-8vcpu-ubuntu-2204]
579-
platform: [linux/amd64]
579+
platform: [linux/amd64, linux/arm64]
580580
exclude:
581581
- runner: blacksmith-8vcpu-ubuntu-2204
582582
platform: linux/arm64
@@ -622,7 +622,7 @@ jobs:
622622
strategy:
623623
matrix:
624624
runner: [blacksmith-8vcpu-ubuntu-2204]
625-
platform: [linux/amd64]
625+
platform: [linux/amd64, linux/arm64]
626626
exclude:
627627
- runner: blacksmith-8vcpu-ubuntu-2204
628628
platform: linux/arm64
@@ -668,7 +668,7 @@ jobs:
668668
strategy:
669669
matrix:
670670
runner: [blacksmith-8vcpu-ubuntu-2204]
671-
platform: [linux/amd64]
671+
platform: [linux/amd64, linux/arm64]
672672
exclude:
673673
- runner: blacksmith-8vcpu-ubuntu-2204
674674
platform: linux/arm64
@@ -714,7 +714,7 @@ jobs:
714714
strategy:
715715
matrix:
716716
runner: [blacksmith-8vcpu-ubuntu-2204]
717-
platform: [linux/amd64]
717+
platform: [linux/amd64, linux/arm64]
718718
exclude:
719719
- runner: blacksmith-8vcpu-ubuntu-2204
720720
platform: linux/arm64
@@ -760,7 +760,7 @@ jobs:
760760
strategy:
761761
matrix:
762762
runner: [blacksmith-8vcpu-ubuntu-2204]
763-
platform: [linux/amd64]
763+
platform: [linux/amd64, linux/arm64]
764764
exclude:
765765
- runner: blacksmith-8vcpu-ubuntu-2204
766766
platform: linux/arm64
@@ -810,7 +810,7 @@ jobs:
810810
strategy:
811811
matrix:
812812
runner: [blacksmith-8vcpu-ubuntu-2204]
813-
platform: [linux/amd64]
813+
platform: [linux/amd64, linux/arm64]
814814
exclude:
815815
- runner: blacksmith-8vcpu-ubuntu-2204
816816
platform: linux/arm64

0 commit comments

Comments
 (0)