@@ -15,8 +15,12 @@ concurrency:
15
15
cancel-in-progress : true
16
16
17
17
jobs :
18
- build-ubuntu-X64 :
19
- runs-on : ubuntu-22.04
18
+ build-ubuntu :
19
+ strategy :
20
+ fail-fast : false
21
+ matrix :
22
+ os : [ubuntu-22.04, ubuntu-22.04-arm]
23
+ runs-on : ${{ matrix.os }}
20
24
outputs :
21
25
eras : ${{ steps.eras-test-lab.outputs.eras }}
22
26
steps :
32
36
33
37
# We separate the build in 2 steps as we want to avoid side effects with Rust feature unification.
34
38
- name : Cargo build - Tooling
39
+ if : matrix.os == 'ubuntu-22.04'
35
40
shell : bash
36
41
run : cargo build --release --bin mithril-end-to-end --bin load-aggregator --features bundle_tls
37
42
57
62
if-no-files-found : error
58
63
59
64
- name : Publish End-to-end runner (${{ runner.os }}-${{ runner.arch }})
65
+ if : matrix.os == 'ubuntu-22.04'
60
66
uses : actions/upload-artifact@v4
61
67
with :
62
68
name : mithril-tooling-${{ runner.os }}-${{ runner.arch }}
66
72
if-no-files-found : error
67
73
68
74
- name : Prepare test lab eras
75
+ if : matrix.os == 'ubuntu-22.04'
69
76
id : eras-test-lab
70
77
run : |
71
78
ERAS=$(./target/release/mithril-aggregator era list --json)
@@ -326,12 +333,12 @@ jobs:
326
333
327
334
e2e :
328
335
runs-on : ubuntu-24.04
329
- needs : [build-ubuntu-X64 ]
336
+ needs : [build-ubuntu]
330
337
strategy :
331
338
fail-fast : false
332
339
matrix :
333
340
mode : ["std"]
334
- era : ${{ fromJSON(needs.build-ubuntu-X64 .outputs.eras) }}
341
+ era : ${{ fromJSON(needs.build-ubuntu.outputs.eras) }}
335
342
next_era : [""]
336
343
cardano_node_version : ["10.3.1", "10.4.1"]
337
344
hard_fork_latest_era_at_epoch : [0]
@@ -341,32 +348,32 @@ jobs:
341
348
include :
342
349
# Include a test for partial decentralization with leader/follower signer registration and P2P signature registration
343
350
- mode : " leader-follower"
344
- era : ${{ fromJSON(needs.build-ubuntu-X64 .outputs.eras)[0] }}
351
+ era : ${{ fromJSON(needs.build-ubuntu.outputs.eras)[0] }}
345
352
next_era : [""]
346
353
cardano_node_version : " 10.3.1"
347
354
hard_fork_latest_era_at_epoch : 0
348
355
run_id : " #1"
349
356
extra_args : " --number-of-aggregators=2 --use-relays --relay-signer-registration-mode=passthrough --relay-signature-registration-mode=p2p"
350
357
# Include a test for full dedentralization P2P signer registration and P2P signature registration
351
358
- mode : " decentralized"
352
- era : ${{ fromJSON(needs.build-ubuntu-X64 .outputs.eras)[0] }}
359
+ era : ${{ fromJSON(needs.build-ubuntu.outputs.eras)[0] }}
353
360
next_era : " "
354
361
cardano_node_version : " 10.3.1"
355
362
hard_fork_latest_era_at_epoch : 0
356
363
run_id : " #1"
357
364
extra_args : " --number-of-aggregators=2 --use-relays --relay-signer-registration-mode=p2p --relay-signature-registration-mode=p2p"
358
365
# Include a test for the era switch without regenesis
359
366
- mode : " std"
360
- era : ${{ fromJSON(needs.build-ubuntu-X64 .outputs.eras)[0] }}
361
- next_era : ${{ fromJSON(needs.build-ubuntu-X64 .outputs.eras)[1] }}
367
+ era : ${{ fromJSON(needs.build-ubuntu.outputs.eras)[0] }}
368
+ next_era : ${{ fromJSON(needs.build-ubuntu.outputs.eras)[1] }}
362
369
cardano_node_version : " 10.3.1"
363
370
hard_fork_latest_era_at_epoch : 0
364
371
run_id : " #1"
365
372
extra_args : " "
366
373
# Include a test for the era switch with regenesis
367
374
- mode : " std"
368
- era : ${{ fromJSON(needs.build-ubuntu-X64 .outputs.eras)[0] }}
369
- next_era : ${{ fromJSON(needs.build-ubuntu-X64 .outputs.eras)[1] }}
375
+ era : ${{ fromJSON(needs.build-ubuntu.outputs.eras)[0] }}
376
+ next_era : ${{ fromJSON(needs.build-ubuntu.outputs.eras)[1] }}
370
377
cardano_node_version : " 10.3.1"
371
378
hard_fork_latest_era_at_epoch : 0
372
379
run_id : " #1"
0 commit comments