-
Notifications
You must be signed in to change notification settings - Fork 21
76 lines (73 loc) · 1.81 KB
/
l2_prover_ci.yaml
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
<<<<<<< HEAD
name: L2_PROVER_CI
on:
push:
branches:
- main
- l2**
- prover**
=======
name: L2 Prover CI
on:
push:
branches: ["main"]
>>>>>>> main
paths:
- "crates/l2/prover/**"
pull_request:
branches: ["**"]
paths:
- "crates/l2/prover/**"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
<<<<<<< HEAD
prover:
name: Build RISC-V zkVM program
=======
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
action:
- command: check
args: -p ethereum_rust-prover
- command: clippy
args: -p ethereum_rust-prover --all-targets --no-default-features
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Add Rust Cache
uses: Swatinem/rust-cache@v2
- name: ${{ matrix.action.command }} Command
run: cargo ${{ matrix.action.command }} ${{ matrix.action.args }}
build_and_test:
name: Build and Test RISC-V zkVM program
>>>>>>> main
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Rust toolchain install
uses: dtolnay/rust-toolchain@stable
- name: RISC-V zkVM toolchain install
run: |
curl -L https://risczero.com/install | bash
~/.risc0/bin/rzup install
- name: Caching
uses: Swatinem/rust-cache@v2
- name: Build prover and zkVM
run: |
cd crates/l2/prover
cargo build --release --features build_zkvm
- name: Test Prover Execution
run: |
cd crates/l2/prover
<<<<<<< HEAD
RISC0_DEV_MODE=1 make perf_test_proving
=======
RUST_LOG=info make perf_test_proving
>>>>>>> main