-
Notifications
You must be signed in to change notification settings - Fork 5
77 lines (67 loc) · 1.91 KB
/
Copy pathbench.yml
File metadata and controls
77 lines (67 loc) · 1.91 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
name: Benchmarks
on:
pull_request:
paths:
- "Cargo.toml"
- "Cargo.lock"
- "rust-toolchain.toml"
- "program/**"
- "cu-bench/**"
- "client/**"
- "interface/**"
- "instruction-macros/**"
- "price/**"
- "services/**"
- "transaction-parser/**"
- ".github/workflows/bench.yml"
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
SOLANA_VERSION: v3.1.9
jobs:
bench:
name: CU Benchmarks
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.30.3
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- uses: dtolnay/rust-toolchain@1.86.0
- uses: Swatinem/rust-cache@v2
- run: pnpm install --frozen-lockfile
- name: Cache Solana toolchain
id: solana-cache
uses: actions/cache@v4
with:
path: |
~/.local/share/solana/install
~/.cache/solana
key: solana-${{ env.SOLANA_VERSION }}-${{ runner.os }}
- name: Install Solana CLI
if: steps.solana-cache.outputs.cache-hit != 'true'
run: sh -c "$(curl -sSfL https://release.anza.xyz/${SOLANA_VERSION}/install)"
- name: Add Solana to PATH
run: echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
- run: solana --version
- name: Bench dropset
run: pnpm bench:dropset
- name: Bench manifest
run: pnpm bench:manifest
- name: Bench phoenix
run: pnpm bench:phoenix
- name: Bench pack-orders
run: pnpm bench:pack-orders
- name: Bench to-order-info
run: pnpm bench:to-order-info