@@ -29,49 +29,19 @@ jobs:
29
29
with :
30
30
authToken : ' ${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}'
31
31
32
- - name : Get released workflow run id
33
- id : released-workflow
34
- uses : actions/github-script@v7
35
- with :
36
- script : |
37
- let res = await github.rest.actions.listWorkflowRuns({
38
- owner: context.repo.owner,
39
- repo: context.repo.repo,
40
- workflow_id: 'ci-nix.yaml',
41
- branch: 'release',
42
- status: 'success'
43
- });
44
- return res.data.workflow_runs[0].id;
45
-
46
- - name : Get latest workflow run id
47
- id : latest-workflow
48
- uses : actions/github-script@v7
49
- with :
50
- script : |
51
- let res = await github.rest.actions.listWorkflowRuns({
52
- owner: context.repo.owner,
53
- repo: context.repo.repo,
54
- workflow_id: 'ci-nix.yaml',
55
- branch: 'master',
56
- status: 'success'
57
- });
58
- return res.data.workflow_runs[0].id;
59
-
60
- - name : 📥 Download released benchmarks
61
- uses : actions/download-artifact@v5
62
- with :
63
- github-token : ${{ secrets.GITHUB_TOKEN || github.token }}
64
- run-id : ${{steps.released-workflow.outputs.result}}
65
- pattern : benchmarks-*
66
- merge-multiple : true
67
- path : docs/benchmarks
68
-
69
32
- name : Build documentation
70
33
working-directory : docs
71
34
run : |
72
35
nix build .#docs
73
36
74
- cp result/build /tmp/public/head-protocol -r
37
+ export out=/tmp/public/head-protocol
38
+ mkdir -p $out
39
+ cp result/build/* $out -r
40
+
41
+ nix develop .#hydra-node-bench --command -- tx-cost --output-directory $out/benchmarks/
42
+ nix develop .#hydra-node-bench --command -- micro -o $out/benchmarks/ledger-bench.html
43
+ nix develop .#hydra-cluster-bench --command -- bench-e2e datasets datasets/1-node.json datasets/3-nodes.json --output-directory $out/benchmarks
44
+
75
45
# Clean the working copy
76
46
git clean -dxf
77
47
@@ -81,21 +51,19 @@ jobs:
81
51
git reset origin/master --hard
82
52
sed -i 's|head-protocol|head-protocol/unstable|' docusaurus.config.js
83
53
84
- - name : 📥 Download latest benchmarks
85
- uses : actions/download-artifact@v5
86
- with :
87
- github-token : ${{ secrets.GITHUB_TOKEN || github.token }}
88
- run-id : ${{steps.latest-workflow.outputs.result}}
89
- pattern : benchmarks-*
90
- merge-multiple : true
91
- path : docs/benchmarks
92
-
93
54
- name : Build /unstable documentation
94
55
working-directory : docs
95
56
run : |
96
57
nix build .#docs
97
58
98
- cp result/build /tmp/public/head-protocol/unstable/ -r
59
+ export out=/tmp/public/head-protocol/unstable
60
+ mkdir -p $out
61
+ cp result/build/* $out -r
62
+
63
+ nix develop .#hydra-node-bench --command -- tx-cost --output-directory $out/benchmarks/
64
+ nix develop .#hydra-node-bench --command -- micro -o $out/benchmarks/ledger-bench.html
65
+ nix develop .#hydra-cluster-bench --command -- bench-e2e datasets datasets/1-node.json datasets/3-nodes.json --output-directory $out/benchmarks
66
+
99
67
100
68
- name : 👉 Create redirects
101
69
run : |
0 commit comments