Skip to content

Commit

Permalink
[ci] Move benchmark job to github-action (#1478)
Browse files Browse the repository at this point in the history
* [ci] Move gitlab ci to GitHub Actions

* rm debug, schedule, on pr condition

* Add schedule
  • Loading branch information
alvicsam authored Oct 21, 2024
1 parent d998e64 commit 2be180a
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 235 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Benchmarks

on:
schedule:
- cron: "0 5 * * 6" # Every Saturday at 5:00 UTC
push:
branches:
- master

jobs:
bench:
name: Benchmarks
runs-on: parity-benchmark
container:
image: "paritytech/ci-unified:bullseye-1.75.0-2024-01-22-v20240109"
steps:
- name: Checkout Sources
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Rust Cache
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5

- name: run benchmarks
run: cargo bench -p jsonrpsee-benchmarks -- --output-format bencher | tee output.txt

- name: Store benchmark result
uses: rhysd/github-action-benchmark@4de1bed97a47495fc4c5404952da0499e31f5c29 # v1.20.3
with:
tool: "cargo"
output-file-path: "output.txt"
benchmark-data-dir-path: "bench/dev2"
fail-on-alert: true
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-alert: true
auto-push: true
49 changes: 0 additions & 49 deletions .github/workflows/benchmarks_gitlab.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/gitspiegel-trigger.yml

This file was deleted.

130 changes: 0 additions & 130 deletions .gitlab-ci.yml

This file was deleted.

34 changes: 0 additions & 34 deletions scripts/ci/push_bench_results.sh

This file was deleted.

0 comments on commit 2be180a

Please sign in to comment.