mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 00:37:57 +00:00
[ci] Collect subsystem-benchmarks results and add graphs for them (#3853)
PR adds CI jobs that collect subsystem-benchmarks results and publishes them to gh-pages. cc https://github.com/paritytech/ci_cd/issues/934 cc @AndreiEres
This commit is contained in:
committed by
GitHub
parent
5ac32ee2bd
commit
25af0adf78
@@ -0,0 +1,42 @@
|
||||
# The actions takes json file as input and runs github-action-benchmark for it.
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
benchmark-data-dir-path:
|
||||
description: "Path to the benchmark data directory"
|
||||
required: true
|
||||
type: string
|
||||
output-file-path:
|
||||
description: "Path to the benchmark data file"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
subsystem-benchmarks:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Sources
|
||||
uses: actions/checkout@v4.1.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: "gh-pages"
|
||||
|
||||
- name: Copy bench results
|
||||
id: step_one
|
||||
run: |
|
||||
cp bench/gitlab/${{ github.event.inputs.output-file-path }} ${{ github.event.inputs.output-file-path }}
|
||||
|
||||
- name: Switch branch
|
||||
id: step_two
|
||||
run: |
|
||||
git checkout master
|
||||
|
||||
- name: Store benchmark result
|
||||
uses: benchmark-action/github-action-benchmark@v1
|
||||
with:
|
||||
tool: "customSmallerIsBetter"
|
||||
output-file-path: ${{ github.event.inputs.output-file-path }}
|
||||
benchmark-data-dir-path: "bench/${{ github.event.inputs.benchmark-data-dir-path }}"
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
auto-push: true
|
||||
Reference in New Issue
Block a user