23
23
override : true
24
24
25
25
- uses : actions/cache@v2.1.5
26
- name : Cache mithril-core/Cargo.toml
26
+ name : Cache mithril-core/Cargo.lock
27
27
with :
28
28
path : |
29
29
~/.cargo/registry
@@ -116,7 +116,7 @@ jobs:
116
116
override : true
117
117
118
118
- uses : actions/cache@v2.1.5
119
- name : Cache mithril-network/mithril-aggregator/Cargo.toml
119
+ name : Cache mithril-network/mithril-aggregator/Cargo.lock
120
120
with :
121
121
path : |
122
122
~/.cargo/registry
@@ -218,6 +218,12 @@ jobs:
218
218
command : test
219
219
args : --release --manifest-path ./mithril-network/mithril-client/Cargo.toml
220
220
221
+ - name : Publish client
222
+ uses : actions/upload-artifact@v3
223
+ with :
224
+ name : mithril-client
225
+ path : mithril-network/mithril-client/target/release/mithril-client
226
+
221
227
build-mithril-node-poc :
222
228
runs-on : ubuntu-latest
223
229
steps :
@@ -426,12 +432,14 @@ jobs:
426
432
- name : Checkout sources
427
433
uses : actions/checkout@v2
428
434
429
- - name : Cache mithril-core/Cargo.toml
435
+ - name : Cache mithril-core/Cargo.lock
430
436
uses : actions/cache@v2.1.5
431
437
with :
432
438
path : |
439
+ ~/.cargo/registry
440
+ ~/.cargo/git
433
441
mithril-core/target
434
- key : ${{ runner.os }}-${{ hashFiles('mithril-core/Cargo.toml ') }}
442
+ key : ${{ runner.os }}-${{ hashFiles('mithril-core/Cargo.lock ') }}
435
443
restore-keys : |
436
444
${{ runner.os }}-key
437
445
@@ -442,11 +450,13 @@ jobs:
442
450
args : --manifest-path ./mithril-core/Cargo.toml --target-dir ./github-pages/mithril-core
443
451
444
452
- uses : actions/cache@v2.1.5
445
- name : Cache mithril-network/mithril-aggregator/Cargo.toml
453
+ name : Cache mithril-network/mithril-aggregator/Cargo.lock
446
454
with :
447
455
path : |
456
+ ~/.cargo/registry
457
+ ~/.cargo/git
448
458
mithril-network/mithril-aggregator/target
449
- key : ${{ runner.os }}-${{ hashFiles('mithril-network/mithril-aggregator/Cargo.toml ') }}
459
+ key : ${{ runner.os }}-${{ hashFiles('mithril-network/mithril-aggregator/Cargo.lock ') }}
450
460
restore-keys : |
451
461
${{ runner.os }}-key
452
462
@@ -456,11 +466,22 @@ jobs:
456
466
command : doc
457
467
args : --manifest-path ./mithril-network/mithril-aggregator/Cargo.toml --target-dir ./github-pages/mithril-network/mithril-aggregator
458
468
469
+ - uses : actions/cache@v2.1.5
470
+ name : Cache mithril-network/mithril-client/Cargo.lock
471
+ with :
472
+ path : |
473
+ ~/.cargo/registry
474
+ ~/.cargo/git
475
+ mithril-network/mithril-client/target
476
+ key : ${{ runner.os }}-${{ hashFiles('mithril-network/mithril-client/Cargo.lock') }}
477
+ restore-keys : |
478
+ ${{ runner.os }}-key
479
+
459
480
- name : Mithril Client / Generate doc
460
481
uses : actions-rs/cargo@v1
461
482
with :
462
483
command : doc
463
- args : --manifest-path ./mithril-network/mithril-aggregator /Cargo.toml --target-dir ./github-pages/mithril-network/mithril-client
484
+ args : --manifest-path ./mithril-network/mithril-client /Cargo.toml --target-dir ./github-pages/mithril-network/mithril-client
464
485
465
486
- name : Mithril Aggregator / Generate OpenAPI UI
466
487
uses : Legion2/swagger-ui-action@v1
@@ -493,7 +514,7 @@ jobs:
493
514
494
515
build-test-lab :
495
516
runs-on : ubuntu-latest
496
- needs : [ build-mithril-core, build-mithril-aggregator, build-mithril-client ]
517
+ needs : [ build-mithril-core, build-mithril-aggregator ]
497
518
steps :
498
519
- name : Checkout sources
499
520
uses : actions/checkout@v2
@@ -533,3 +554,4 @@ jobs:
533
554
534
555
- name : Test
535
556
run : nix-shell --run '.github/workflows/ci-test.sh'
557
+
0 commit comments