forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 984 Bytes
/
bench.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Benchmark
on:
push:
branches:
- master
permissions:
contents: write
deployments: write
jobs:
benchmark:
name: rust benchmark
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
pkg:
- solana-runtime
- solana-gossip
- solana-poh
- solana-sdk
steps:
- uses: actions/checkout@v4
- name: Setup
run: |
source ci/rust-version.sh nightly
sudo apt update
sudo apt install protobuf-compiler -y
- name: Run benchmark
run: |
source ci/rust-version.sh all
cargo +$rust_nightly bench -p ${{matrix.pkg}} | tee output.txt
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: ${{matrix.pkg}}
tool: "cargo"
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true