Skip to content

Commit dd886ad

Browse files
committed
chore: publish and use artifact for load-aggregator in CI
1 parent 29fbe30 commit dd886ad

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

.github/workflows/aggregator-stress-test.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,26 @@ jobs:
5252
workflow: ci.yml
5353
workflow_conclusion: success
5454

55+
- name: Download test runners
56+
uses: dawidd6/action-download-artifact@v3
57+
with:
58+
name: mithril-tooling-Linux-X64
59+
path: ./bin
60+
commit: ${{ inputs.commit_sha }}
61+
workflow: ci.yml
62+
workflow_conclusion: success
63+
5564
- name: Set permissions
5665
shell: bash
5766
working-directory: ./bin
58-
run: chmod +x ./mithril-aggregator
59-
60-
- name: Build the aggregator stress test
61-
working-directory: mithril-test-lab/mithril-end-to-end
62-
run: make build
67+
run: |
68+
chmod +x ./mithril-aggregator
69+
chmod +x ./load-aggregator
6370
6471
- name: Run the aggregator stress test
65-
working-directory: mithril-test-lab/mithril-end-to-end
6672
run: |
67-
./load-aggregator ${{ steps.prepare.outputs.debug_level }} \
68-
--cardano-cli-path script/mock-cardano-cli \
69-
--aggregator-dir ../../bin \
73+
./bin/load-aggregator ${{ steps.prepare.outputs.debug_level }} \
74+
--cardano-cli-path ./mithril-test-lab/mithril-end-to-end/script/mock-cardano-cli \
75+
--aggregator-dir ./bin \
7076
--num-signers=${{ inputs.num_signers }} \
7177
--num-clients=${{ inputs.num_clients }}

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# We separate the build in 2 steps as we want to avoid side effects with Rust feature unification.
3333
- name: Cargo build - Tooling
3434
shell: bash
35-
run: cargo build --release -p mithril-end-to-end
35+
run: cargo build --release --bin mithril-end-to-end --bin load-aggregator
3636

3737
- name: Build Mithril workspace & publish artifacts
3838
uses: ./.github/workflows/actions/build-upload-mithril-artifact
@@ -58,8 +58,10 @@ jobs:
5858
- name: Publish End-to-end runner (${{ runner.os }}-${{ runner.arch }})
5959
uses: actions/upload-artifact@v4
6060
with:
61-
name: mithril-end-to-end-${{ runner.os }}-${{ runner.arch }}
62-
path: target/release/mithril-end-to-end
61+
name: mithril-tooling-${{ runner.os }}-${{ runner.arch }}
62+
path: |
63+
target/release/mithril-end-to-end
64+
target/release/load-aggregator
6365
if-no-files-found: error
6466

6567
- name: Prepare test lab eras
@@ -302,7 +304,7 @@ jobs:
302304
- name: Download rust test runner
303305
uses: actions/download-artifact@v4
304306
with:
305-
name: mithril-end-to-end-${{ runner.os }}-${{ runner.arch }}
307+
name: mithril-tooling-${{ runner.os }}-${{ runner.arch }}
306308
path: ./
307309

308310
- run: |

0 commit comments

Comments
 (0)