-
Notifications
You must be signed in to change notification settings - Fork 32
57 lines (51 loc) · 1.5 KB
/
perf.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
name: Performance Comparison
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
FOUNDRY_PROFILE: ci
TARGET_PCT: 3
COMPARISON_FILE: comparison_results.log
USE_DOCKER: "true"
jobs:
performance-comparison:
runs-on: ubicloud-standard-16
steps:
- uses: actions/checkout@v4
- name: Fetch latest nightly
run: |
git fetch origin nightly:nightly
- uses: rui314/setup-mold@v1
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "23.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Toolchain
uses: dtolnay/[email protected]
with:
override: true
components: rustfmt, clippy
- name: Rust Cache
uses: ubicloud/rust-cache@v2
- name: Install risc0
uses: ./.github/actions/install-risc0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache ethereum-tests
uses: actions/cache@v4
with:
key: "eth-tests-1c23e3c"
path: crates/evm/ethereum-tests
- name: Run Performance Comparison
run: |
chmod +x ./resources/scripts/cycle-diff.sh
./resources/scripts/cycle-diff.sh generate
- name: Check Performance Regression
run: |
./resources/scripts/cycle-diff.sh check
- name: Upload comparison results
uses: actions/upload-artifact@v4
with:
name: comparison-results
path: comparison_results.log