forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (60 loc) · 1.8 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Benchmark
on:
push:
permissions:
contents: write
deployments: write
jobs:
benchmark:
name: rust benchmark
runs-on: benchmark
strategy:
fail-fast: false
matrix:
test:
- {
name: "solana-sdk",
command: "cargo +$rust_nightly bench -p solana-sdk",
}
- {
name: "solana-runtime",
command: "cargo +$rust_nightly bench -p solana-runtime",
}
- {
name: "solana-gossip",
command: "cargo +$rust_nightly bench -p solana-gossip",
}
- {
name: "solana-poh",
command: "cargo +$rust_nightly bench -p solana-poh",
}
- {
name: "solana-core",
command: "cargo +$rust_nightly bench -p solana-core",
}
- {
name: "solana-accounts-db",
command: "cargo +$rust_nightly bench -p solana-accounts-db",
}
- {
name: "solana-sbf-programs",
before_command: "make -C programs/sbf all",
command: "cargo +$rust_nightly bench -p solana-sbf-programs --features=sbf_c",
}
steps:
- uses: actions/checkout@v4
- name: Run Command
run: |
source ci/rust-version.sh nightly
if [ -n "${{ matrix.test.before_command }}" ]; then
${{ matrix.test.before_command }} || true
fi
${{ matrix.test.command }} | tee output.txt
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: ${{ matrix.test.name }}
tool: "cargo"
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true