Skip to content

Commit e0bd72b

Browse files
authored
chore(ci): compile zkvm programs in ci (#101)
* feat: compile zkvm programs * add * add * add * try * add * add
1 parent ab5e8dc commit e0bd72b

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

.github/workflows/compile.yaml

+29-4
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,40 @@ on:
99
- main
1010

1111
jobs:
12-
build_and_run:
13-
runs-on: ubuntu-latest
14-
12+
build_native_programs:
13+
runs-on:
14+
- runs-on
15+
- runner=16cpu-linux-x64
16+
- run-id=${{ github.run_id }}
1517
steps:
1618
- name: Checkout code
17-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
1820
- name: Compile the fault proof program
1921
run: cargo build --profile release-client-lto
2022
working-directory: programs/fault-proof
2123
- name: Compile the range program
2224
run: cargo build --profile release-client-lto
2325
working-directory: programs/range
26+
build_zkvm_programs:
27+
runs-on:
28+
- runs-on
29+
- runner=64cpu-linux-x64
30+
- run-id=${{ github.run_id }}
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v4
34+
- name: Install SP1 toolchain
35+
run: |
36+
curl -L https://sp1.succinct.xyz | bash
37+
~/.sp1/bin/sp1up
38+
~/.sp1/bin/cargo-prove prove --version
39+
source ~/.bashrc
40+
- name: Compile the fault proof program
41+
run: ~/.sp1/bin/cargo-prove prove build --binary fault-proof
42+
working-directory: programs/fault-proof
43+
- name: Compile the range program
44+
run: ~/.sp1/bin/cargo-prove prove build --binary range
45+
working-directory: programs/range
46+
- name: Compile the aggregation program
47+
run: ~/.sp1/bin/cargo-prove prove build --binary aggregation
48+
working-directory: programs/aggregation

0 commit comments

Comments
 (0)