2323 override : true
2424
252526- name : Cache mithril-core/Cargo.toml
26+ name : Cache mithril-core/Cargo.lock
2727 with :
2828 path : |
2929 ~/.cargo/registry
@@ -116,7 +116,7 @@ jobs:
116116 override : true
117117
118118119- name : Cache mithril-network/mithril-aggregator/Cargo.toml
119+ name : Cache mithril-network/mithril-aggregator/Cargo.lock
120120 with :
121121 path : |
122122 ~/.cargo/registry
@@ -218,6 +218,12 @@ jobs:
218218 command : test
219219 args : --release --manifest-path ./mithril-network/mithril-client/Cargo.toml
220220
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+
221227 build-mithril-node-poc :
222228 runs-on : ubuntu-latest
223229 steps :
@@ -426,12 +432,14 @@ jobs:
426432 - name : Checkout sources
427433 uses : actions/checkout@v2
428434
429- - name : Cache mithril-core/Cargo.toml
435+ - name : Cache mithril-core/Cargo.lock
430436431437 with :
432438 path : |
439+ ~/.cargo/registry
440+ ~/.cargo/git
433441 mithril-core/target
434- key : ${{ runner.os }}-${{ hashFiles('mithril-core/Cargo.toml ') }}
442+ key : ${{ runner.os }}-${{ hashFiles('mithril-core/Cargo.lock ') }}
435443 restore-keys : |
436444 ${{ runner.os }}-key
437445
@@ -442,11 +450,13 @@ jobs:
442450 args : --manifest-path ./mithril-core/Cargo.toml --target-dir ./github-pages/mithril-core
443451
444452445- name : Cache mithril-network/mithril-aggregator/Cargo.toml
453+ name : Cache mithril-network/mithril-aggregator/Cargo.lock
446454 with :
447455 path : |
456+ ~/.cargo/registry
457+ ~/.cargo/git
448458 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 ') }}
450460 restore-keys : |
451461 ${{ runner.os }}-key
452462
@@ -456,11 +466,22 @@ jobs:
456466 command : doc
457467 args : --manifest-path ./mithril-network/mithril-aggregator/Cargo.toml --target-dir ./github-pages/mithril-network/mithril-aggregator
458468
469+ 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+
459480 - name : Mithril Client / Generate doc
460481 uses : actions-rs/cargo@v1
461482 with :
462483 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
464485
465486 - name : Mithril Aggregator / Generate OpenAPI UI
466487 uses : Legion2/swagger-ui-action@v1
@@ -493,7 +514,7 @@ jobs:
493514
494515 build-test-lab :
495516 runs-on : ubuntu-latest
496- needs : [ build-mithril-core, build-mithril-aggregator, build-mithril-client ]
517+ needs : [ build-mithril-core, build-mithril-aggregator ]
497518 steps :
498519 - name : Checkout sources
499520 uses : actions/checkout@v2
@@ -533,3 +554,4 @@ jobs:
533554
534555 - name : Test
535556 run : nix-shell --run '.github/workflows/ci-test.sh'
557+
0 commit comments