File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,23 @@ name: OpenVM Repo Consistency Check
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ version :
7+ description : " Version to check"
8+ required : true
9+
10+ release :
11+ types : [published]
12+
13+ env :
14+ VERSION : ${{ github.event.inputs.version || github.event.release.tag_name }}
515
616concurrency :
7- group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
17+ group : ${{ github.workflow }}-${{ github.event.inputs.version || github.event.release.tag_name }}
818 cancel-in-progress : true
919
1020jobs :
11- checks :
21+ consistency-check :
1222 runs-on :
1323 - runs-on=${{ github.run_id }}
1424 - family=m7a.24xlarge
2535 run : |
2636 git clone https://github.com/openvm-org/openvm.git
2737 cd openvm
28- git checkout feat/format-verifier
38+ git checkout ${VERSION}
2939
3040 - name : Run openvm setup
3141 run : |
3747
3848 - name : Compare output to version folder
3949 run : |
40- diff -r ~/.openvm/halo2/src/v1.0.1-rc.0 src/v1.0.1-rc.0 --exclude=verifier.bytecode.json
50+ diff -r ~/.openvm/halo2/src/${VERSION} src/${VERSION} --exclude=verifier.bytecode.json
4151
4252 - name : Compare compiled bytecode in repo to verifier.bytecode.json
4353 run : |
4454 forge build --force
45- diff <(jq -r '.bytecode.object | ltrimstr("0x")' out/OpenVmHalo2Verifier.sol/OpenVmHalo2Verifier.json) <(jq -r '.bytecode | ltrimstr("0x")' ~/.openvm/halo2/src/v1.0.1-rc.0 /verifier.bytecode.json)
55+ 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