File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : OpenVM Repo Consistency Check
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : " Version to check"
8+ required : true
9+
10+ env :
11+ VERSION : ${{ github.event.inputs.version }}
12+
13+ concurrency :
14+ group : ${{ github.workflow }}-${{ github.event.inputs.version }}
15+ cancel-in-progress : true
16+
17+ jobs :
18+ consistency-check :
19+ runs-on :
20+ - runs-on=${{ github.run_id }}
21+ - family=m7a.24xlarge
22+ - disk=large
23+
24+ steps :
25+ - name : Checkout current repo
26+ uses : actions/checkout@v4
27+
28+ - name : Install solc # svm should support arm64 linux
29+ run : (hash svm 2>/dev/null || cargo install --version 0.2.23 svm-rs) && svm install 0.8.19 && solc --version
30+
31+ - name : Clone openvm at tag
32+ run : |
33+ git clone https://github.com/openvm-org/openvm.git
34+ cd openvm
35+ git checkout ${VERSION}
36+
37+ - name : Run openvm setup
38+ run : |
39+ cd openvm/crates
40+ cargo run --bin cargo-openvm openvm setup
41+
42+ - name : Install Foundry
43+ uses : foundry-rs/foundry-toolchain@v1
44+
45+ - name : Compare output to version folder
46+ run : |
47+ diff -r ~/.openvm/halo2/src/${VERSION} src/${VERSION} --exclude=verifier.bytecode.json
48+
49+ - name : Compare compiled bytecode in repo to verifier.bytecode.json
50+ run : |
51+ forge build --force
52+ diff <(jq -r '.bytecode.object | ltrimstr("0x")' out/OpenVmHalo2Verifier.sol/OpenVmHalo2Verifier.json) <(jq -r '.bytecode | ltrimstr("0x")' ~/.openvm/halo2/src/${VERSION}/verifier.bytecode.json)
You can’t perform that action at this time.
0 commit comments