Skip to content

Commit 2be180a

Browse files
authored
[ci] Move benchmark job to github-action (#1478)
* [ci] Move gitlab ci to GitHub Actions * rm debug, schedule, on pr condition * Add schedule
1 parent d998e64 commit 2be180a

File tree

5 files changed

+35
-235
lines changed

5 files changed

+35
-235
lines changed

.github/workflows/benchmarks.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Benchmarks
2+
3+
on:
4+
schedule:
5+
- cron: "0 5 * * 6" # Every Saturday at 5:00 UTC
6+
push:
7+
branches:
8+
- master
9+
10+
jobs:
11+
bench:
12+
name: Benchmarks
13+
runs-on: parity-benchmark
14+
container:
15+
image: "paritytech/ci-unified:bullseye-1.75.0-2024-01-22-v20240109"
16+
steps:
17+
- name: Checkout Sources
18+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
19+
20+
- name: Rust Cache
21+
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
22+
23+
- name: run benchmarks
24+
run: cargo bench -p jsonrpsee-benchmarks -- --output-format bencher | tee output.txt
25+
26+
- name: Store benchmark result
27+
uses: rhysd/github-action-benchmark@4de1bed97a47495fc4c5404952da0499e31f5c29 # v1.20.3
28+
with:
29+
tool: "cargo"
30+
output-file-path: "output.txt"
31+
benchmark-data-dir-path: "bench/dev2"
32+
fail-on-alert: true
33+
github-token: ${{ secrets.GITHUB_TOKEN }}
34+
comment-on-alert: true
35+
auto-push: true

.github/workflows/benchmarks_gitlab.yml

-49
This file was deleted.

.github/workflows/gitspiegel-trigger.yml

-22
This file was deleted.

.gitlab-ci.yml

-130
This file was deleted.

scripts/ci/push_bench_results.sh

-34
This file was deleted.

0 commit comments

Comments
 (0)