-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (60 loc) · 2.08 KB
/
prover.yml
File metadata and controls
71 lines (60 loc) · 2.08 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
name: Prover
on:
pull_request:
merge_group:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: {}
jobs:
prover-perf:
name: Run prover-perf (SP1)
runs-on: ubuntu-latest
timeout-minutes: 120
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
with:
persist-credentials: false
- name: Install Rust toolchain
run: |
RUST_TOOLCHAIN="$(sed -n 's/^channel = "\(.*\)"/\1/p' rust-toolchain.toml)"
rustup toolchain install "$RUST_TOOLCHAIN" --profile minimal
rustup default "$RUST_TOOLCHAIN"
- name: Rust cache
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
with:
cache-on-failure: true
- name: Install SP1 Toolchain
run: |
curl -fsSL --proto '=https' --tlsv1.2 https://sp1.succinct.xyz | bash
~/.sp1/bin/sp1up
echo "$HOME/.sp1/bin" >> "$GITHUB_PATH"
- name: Check SP1 toolchain
run: cargo prove --version
- name: Run prover-perf and post PR comment
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
env:
ZKVM_MOCK: "1"
ZKVM_PROFILING: "1"
run: |
cargo run --release -p strata-asm-prover-perf -- \
--post-to-gh \
--github-token "${{ secrets.GITHUB_TOKEN }}" \
--pr-number "${{ github.event.pull_request.number }}" \
--commit-hash "${{ github.sha }}" \
--github-repo "${{ github.repository }}" \
--programs asm-stf
- name: Run prover-perf
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == true
env:
ZKVM_MOCK: "1"
ZKVM_PROFILING: "1"
run: cargo run --release -p strata-asm-prover-perf -- --programs asm-stf