-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Move benchmark job to github-action (#1478)
* [ci] Move gitlab ci to GitHub Actions * rm debug, schedule, on pr condition * Add schedule
- Loading branch information
Showing
5 changed files
with
35 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.