24
24
25
25
# ## Pre merge workflow ###############################################################################################################
26
26
27
- build-linux-pre-merge :
27
+ build-linux-x86_64- pre-merge :
28
28
runs-on : ubuntu-latest
29
29
if : github.event_name == 'pull_request' && github.event.pull_request.merged == false
30
30
outputs :
87
87
88
88
local-environment-tests :
89
89
if : github.event_name == 'pull_request' && github.event.pull_request.merged == false
90
- needs : build-linux-pre-merge
90
+ needs : build-linux-x86_64- pre-merge
91
91
runs-on : ubuntu-latest
92
92
steps :
93
93
- name : Checkout
99
99
uses : ./.github/actions/tests/local-environment-tests
100
100
with :
101
101
tag : CI
102
- image : ${{ secrets.ECR_REGISTRY_SECRET }}/partner-chains-node:${{ needs.build-linux-pre-merge.outputs.sha }}
103
- sha : ${{ needs.build-linux-pre-merge.outputs.sha }}
102
+ image : ${{ secrets.ECR_REGISTRY_SECRET }}/partner-chains-node:${{ needs.build-linux-x86_64- pre-merge.outputs.sha }}
103
+ sha : ${{ needs.build-linux-x86_64- pre-merge.outputs.sha }}
104
104
tests : premerge
105
105
env :
106
106
SUBSTRATE_REPO_SSH_KEY : ${{ secrets.SUBSTRATE_REPO_SSH_KEY }}
@@ -143,7 +143,7 @@ jobs:
143
143
shell : bash
144
144
145
145
devshell-tests :
146
- needs : build-linux-pre-merge
146
+ needs : build-linux-x86_64- pre-merge
147
147
if : github.event_name == 'pull_request' && github.event.pull_request.merged == false
148
148
strategy :
149
149
matrix :
@@ -176,7 +176,7 @@ jobs:
176
176
177
177
upload-chain-specs-pre-merge :
178
178
if : github.event_name == 'pull_request' && github.event.pull_request.merged == false
179
- needs : build-linux-pre-merge
179
+ needs : build-linux-x86_64- pre-merge
180
180
runs-on : eks
181
181
steps :
182
182
- name : Checkout
@@ -187,20 +187,20 @@ jobs:
187
187
- name : Upload chain spec artifacts to Kubernetes
188
188
uses : ./.github/actions/deploy/upload-chain-specs
189
189
with :
190
- sha : ${{ needs.build-linux-pre-merge.outputs.sha }}
190
+ sha : ${{ needs.build-linux-x86_64- pre-merge.outputs.sha }}
191
191
env :
192
192
kubeconfig_base64 : ${{ secrets.kubeconfig_base64 }}
193
193
K8S_SERVER : ${{ secrets.K8S_SERVER }}
194
194
K8S_SA_TOKEN : ${{ secrets.K8S_SA_TOKEN }}
195
195
196
196
pre-merge-checks-complete :
197
197
if : ${{ always() && github.event_name == 'pull_request' && github.event.pull_request.merged == false }}
198
- needs : [build-linux-pre-merge, local-environment-tests, devshell-tests, upload-chain-specs-pre-merge]
198
+ needs : [build-linux-x86_64- pre-merge, local-environment-tests, devshell-tests, upload-chain-specs-pre-merge]
199
199
runs-on : ubuntu-latest
200
200
steps :
201
201
- name : Check if any needed job failed
202
202
run : |
203
- if [[ "${{ needs.build-linux-pre-merge.result }}" != "success" ||
203
+ if [[ "${{ needs.build-linux-x86_64- pre-merge.result }}" != "success" ||
204
204
"${{ needs.local-environment-tests.result }}" != "success" ||
205
205
"${{ needs.devshell-tests.result }}" != "success" ||
206
206
"${{ needs.upload-chain-specs-pre-merge.result }}" != "success" ]]; then
@@ -212,7 +212,7 @@ jobs:
212
212
213
213
# ## Post merge workflow ###############################################################################################################
214
214
215
- build-linux-post-merge :
215
+ build-linux-x86_64- post-merge :
216
216
runs-on : ubuntu-latest
217
217
if : github.event_name == 'pull_request' && github.event.pull_request.merged == true
218
218
outputs :
@@ -289,6 +289,30 @@ jobs:
289
289
./to-build/staging_preview_chain_spec.json
290
290
./to-build/staging_preprod_chain_spec.json
291
291
292
+ build-linux-arm64 :
293
+ if : github.event_name == 'pull_request' && github.event.pull_request.merged == true
294
+ permissions :
295
+ id-token : write
296
+ contents : write
297
+ runs-on : ubuntu-latest
298
+ steps :
299
+ - name : Checkout master
300
+ uses : actions/checkout@v4
301
+ with :
302
+ fetch-depth : 0
303
+ ref : master
304
+ - name : Get current commit SHA
305
+ id : get_sha
306
+ run : echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
307
+ - name : Set up QEMU
308
+ uses : docker/setup-qemu-action@v3
309
+ - name : Build and Upload for linux arm64
310
+ uses : ./.github/actions/artifacts/build-pc-artifacts
311
+ with :
312
+ sha : ${{ steps.get_sha.outputs.sha }}
313
+ tag : ${{ steps.get_sha.outputs.sha }}
314
+ os : linux-arm64
315
+
292
316
build-macos-x86_64 :
293
317
if : github.event_name == 'pull_request' && github.event.pull_request.merged == true
294
318
permissions :
@@ -336,7 +360,8 @@ jobs:
336
360
upload-to-s3 :
337
361
if : github.event_name == 'pull_request' && github.event.pull_request.merged == true
338
362
needs :
339
- - build-linux-post-merge
363
+ - build-linux-x86_64-post-merge
364
+ - build-linux-arm64
340
365
- build-macos-x86_64
341
366
- build-macos-arm64
342
367
runs-on : ubuntu-latest
@@ -363,7 +388,7 @@ jobs:
363
388
364
389
upload-chain-specs :
365
390
if : github.event_name == 'pull_request' && github.event.pull_request.merged == true
366
- needs : build-linux-post-merge
391
+ needs : build-linux-x86_64- post-merge
367
392
runs-on : eks
368
393
steps :
369
394
- name : Checkout
@@ -374,15 +399,15 @@ jobs:
374
399
- name : Upload chain spec artifacts to Kubernetes
375
400
uses : ./.github/actions/deploy/upload-chain-specs
376
401
with :
377
- sha : ${{ needs.build-linux-post-merge.outputs.sha }}
402
+ sha : ${{ needs.build-linux-x86_64- post-merge.outputs.sha }}
378
403
env :
379
404
kubeconfig_base64 : ${{ secrets.kubeconfig_base64 }}
380
405
K8S_SERVER : ${{ secrets.K8S_SERVER }}
381
406
K8S_SA_TOKEN : ${{ secrets.K8S_SA_TOKEN }}
382
407
383
408
deploy-rustdoc :
384
409
if : github.event_name == 'pull_request' && github.event.pull_request.merged == true
385
- needs : build-linux-post-merge
410
+ needs : build-linux-x86_64- post-merge
386
411
runs-on : ubuntu-latest
387
412
steps :
388
413
- name : Checkout
@@ -400,7 +425,7 @@ jobs:
400
425
401
426
local-environment-tests-post-merge :
402
427
if : github.event_name == 'pull_request' && github.event.pull_request.merged == true
403
- needs : build-linux-post-merge
428
+ needs : build-linux-x86_64- post-merge
404
429
runs-on : ubuntu-latest
405
430
steps :
406
431
- name : Checkout
@@ -412,8 +437,8 @@ jobs:
412
437
uses : ./.github/actions/tests/local-environment-tests
413
438
with :
414
439
tag : CI
415
- image : ${{ secrets.ECR_REGISTRY_SECRET }}/partner-chains-node:${{ needs.build-linux-post-merge.outputs.sha }}
416
- sha : ${{ needs.build-linux-post-merge.outputs.sha }}
440
+ image : ${{ secrets.ECR_REGISTRY_SECRET }}/partner-chains-node:${{ needs.build-linux-x86_64- post-merge.outputs.sha }}
441
+ sha : ${{ needs.build-linux-x86_64- post-merge.outputs.sha }}
417
442
tests : postmerge
418
443
env :
419
444
SUBSTRATE_REPO_SSH_KEY : ${{ secrets.SUBSTRATE_REPO_SSH_KEY }}
@@ -457,7 +482,7 @@ jobs:
457
482
458
483
deploy-ci-preview :
459
484
needs :
460
- - build-linux-post-merge
485
+ - build-linux-x86_64- post-merge
461
486
- local-environment-tests-post-merge-alert
462
487
permissions :
463
488
id-token : write
@@ -471,8 +496,8 @@ jobs:
471
496
- name : Deploy ci-preview
472
497
uses : ./.github/actions/deploy/deploy-ci-preview
473
498
with :
474
- image : ${{ secrets.ECR_REGISTRY_SECRET }}/partner-chains-node:${{ needs.build-linux-post-merge.outputs.sha }}
475
- sha : ${{ needs.build-linux-post-merge.outputs.sha }}
499
+ image : ${{ secrets.ECR_REGISTRY_SECRET }}/partner-chains-node:${{ needs.build-linux-x86_64- post-merge.outputs.sha }}
500
+ sha : ${{ needs.build-linux-x86_64- post-merge.outputs.sha }}
476
501
no-wipe : true
477
502
env :
478
503
AWS_REGION : " eu-central-1"
@@ -512,22 +537,24 @@ jobs:
512
537
if : ${{ always() && (github.event_name == 'pull_request' && github.event.pull_request.merged == true) }}
513
538
needs :
514
539
[
515
- build-linux-post-merge,
540
+ build-linux-x86_64- post-merge,
516
541
deploy-rustdoc,
517
542
upload-chain-specs,
518
543
local-environment-tests-post-merge,
519
544
ci-preview-tests-post-merge,
520
545
deploy-ci-preview,
546
+ upload-to-s3,
521
547
]
522
548
runs-on : ubuntu-latest
523
549
steps :
524
550
- name : Check if any needed job failed
525
551
run : |
526
552
if [[ "${{ needs.deploy-rustdoc.result }}" != "success" ||
527
- "${{ needs.build-linux-post-merge.result }}" != "success" ||
553
+ "${{ needs.build-linux-x86_64- post-merge.result }}" != "success" ||
528
554
"${{ needs.upload-chain-specs.result }}" != "success" ||
529
555
"${{ needs.local-environment-tests-post-merge.result }}" != "success" ]]
530
- "${{ needs.deploy-ci-preview.result }}" != "success" ]]; then
556
+ "${{ needs.deploy-ci-preview.result }}" != "success" ]]
557
+ "${{ needs.upload-to-s3.result }}" != "success" ]]; then
531
558
echo "One or more needed jobs failed."
532
559
exit 1
533
560
else
@@ -536,7 +563,7 @@ jobs:
536
563
537
564
# ## Workflow dispatch flow ###############################################################################################################
538
565
539
- build-linux-workflow-dispatch :
566
+ build-linux-x86_64- workflow-dispatch :
540
567
runs-on : ubuntu-latest
541
568
if : github.event_name == 'workflow_dispatch'
542
569
steps :
@@ -595,6 +622,27 @@ jobs:
595
622
./to-build/staging_preview_chain_spec.json
596
623
./to-build/staging_preprod_chain_spec.json
597
624
625
+ build-linux-arm64-workflow-dispatch :
626
+ if : github.event_name == 'workflow_dispatch'
627
+ permissions :
628
+ id-token : write
629
+ contents : write
630
+ runs-on : ubuntu-latest
631
+ steps :
632
+ - name : Checkout specific SHA
633
+ uses : actions/checkout@v4
634
+ with :
635
+ fetch-depth : 0
636
+ ref : ${{ github.sha }}
637
+ - name : Set up QEMU
638
+ uses : docker/setup-qemu-action@v3
639
+ - name : Build and Upload for linux arm64
640
+ uses : ./.github/actions/artifacts/build-pc-artifacts
641
+ with :
642
+ sha : ${{ inputs.sha }}
643
+ tag : ${{ inputs.sha }}
644
+ os : linux-arm64
645
+
598
646
build-macos-x86_64-workflow-dispatch :
599
647
if : github.event_name == 'workflow_dispatch'
600
648
permissions :
@@ -636,7 +684,8 @@ jobs:
636
684
upload-to-s3-workflow-dispatch :
637
685
if : github.event_name == 'workflow_dispatch'
638
686
needs :
639
- - build-linux-workflow-dispatch
687
+ - build-linux-x86_64-workflow-dispatch
688
+ - build-linux-arm64-workflow-dispatch
640
689
- build-macos-x86_64-workflow-dispatch
641
690
- build-macos-arm64-workflow-dispatch
642
691
runs-on : ubuntu-latest
@@ -660,7 +709,7 @@ jobs:
660
709
661
710
upload-chain-specs-workflow-dispatch :
662
711
if : github.event_name == 'workflow_dispatch'
663
- needs : build-linux-workflow-dispatch
712
+ needs : build-linux-x86_64- workflow-dispatch
664
713
runs-on : eks
665
714
steps :
666
715
- name : Checkout specific SHA
@@ -679,12 +728,13 @@ jobs:
679
728
680
729
workflow-dispatch-flow-complete :
681
730
if : ${{ always() && github.event_name == 'workflow_dispatch' }}
682
- needs : [build-linux-workflow-dispatch, build-macos-x86_64-workflow-dispatch, build-macos-arm64-workflow-dispatch, upload-to-s3-workflow-dispatch, upload-chain-specs-workflow-dispatch]
731
+ needs : [build-linux-x86_64-workflow-dispatch, build-linux-arm64- workflow-dispatch, build-macos-x86_64-workflow-dispatch, build-macos-arm64-workflow-dispatch, upload-to-s3-workflow-dispatch, upload-chain-specs-workflow-dispatch]
683
732
runs-on : ubuntu-latest
684
733
steps :
685
734
- name : Check if any needed job failed
686
735
run : |
687
- if [[ "${{ needs.build-linux-workflow-dispatch.result }}" != "success" ||
736
+ if [[ "${{ needs.build-linux-x86_64-workflow-dispatch.result }}" != "success" ||
737
+ "${{ needs.build-linux-arm64-workflow-dispatch.result }}" != "success" ||
688
738
"${{ needs.build-macos-x86_64-workflow-dispatch.result }}" != "success" ||
689
739
"${{ needs.build-macos-arm64-workflow-dispatch.result }}" != "success" ||
690
740
"${{ needs.upload-to-s3-workflow-dispatch.result }}" != "success" ||
0 commit comments