Skip to content

Commit dc20b05

Browse files
authored
Merge pull request #43 from scroll-tech/feat/phase2
Feat: Euclid Phase2
2 parents f0f4331 + fbefb34 commit dc20b05

File tree

130 files changed

+4932
-1730
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+4932
-1730
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ docs
2121
openvm-clippy
2222

2323
target
24+
25+
root_verifier.asm

.github/workflows/build-guest.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222
- crates/circuits/batch-circuit/**/*
2323
- crates/circuits/bundle-circuit/**/*
2424
- crates/build-guest/**/*
25+
workflow_dispatch:
2526

2627
concurrency:
2728
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -33,7 +34,8 @@ jobs:
3334
if: github.event.pull_request.draft == false
3435
runs-on: ubuntu-latest
3536
steps:
36-
- uses: actions/checkout@v4
37+
- name: Checkout code
38+
uses: actions/checkout@v4
3739

3840
- name: chunk commitments (prover)
3941
id: commitments-chunk-prover
@@ -142,3 +144,9 @@ jobs:
142144
make build-guest
143145
git diff
144146
git diff --quiet && echo "no diff" || (echo "diff"; exit 1)
147+
148+
- name: Upload artifact (chunk app.vmexe)
149+
uses: actions/upload-artifact@v4
150+
with:
151+
name: chunk-app-vmexe
152+
path: ./crates/circuits/chunk-circuit/openvm/app.vmexe

.github/workflows/profile-guest.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Profile Guest
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Build Guest"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
profile-guest:
11+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Download artifact (chunk app.vmexe)
18+
uses: actions/download-artifact@v4
19+
with:
20+
name: chunk-app-vmexe
21+
path: ./crates/circuits/chunk-circuit/openvm/
22+
23+
- name: Setup rust
24+
uses: dtolnay/rust-toolchain@master
25+
with:
26+
toolchain: nightly-2024-12-06
27+
28+
- name: Guest profiling to capture total_cycles
29+
id: guest-profiling
30+
run: |
31+
# Run the tests and capture the output
32+
output=$(make profile-chunk | grep "scroll-zkvm-integration(chunk-circuit): total cycles = ")
33+
echo "total_cycles=$output" >> $GITHUB_ENV
34+
35+
- name: Update PR Description
36+
uses: actions/github-script@v6
37+
with:
38+
script: |
39+
const prNumber = context.payload.pull_request.number;
40+
const totalCycles = process.env.total_cycles;
41+
const currentBody = context.payload.pull_request.body;
42+
43+
// Update the PR description with the total cycles
44+
const newBody = `### Total Cycles (chunk-circuit)\n${totalCycles}\n\n${currentBody}`;
45+
await github.pulls.update({
46+
owner: context.repo.owner,
47+
repo: context.repo.repo,
48+
pull_number: prNumber,
49+
body: newBody,
50+
});

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,13 @@
55
/releases
66

77
*.log
8+
89
root_verifier.asm
10+
11+
crates/verifier/testdata/euclidv1/root-verifier-vm-config
12+
crates/verifier/testdata/euclidv1/root-verifier-committed-exe
13+
crates/verifier/testdata/euclidv1/verifier.bin
14+
15+
crates/verifier/testdata/euclidv2/root-verifier-vm-config
16+
crates/verifier/testdata/euclidv2/root-verifier-committed-exe
17+
crates/verifier/testdata/euclidv2/verifier.bin

0 commit comments

Comments
 (0)