Skip to content

Commit 08c39a9

Browse files
committed
f
1 parent 80e6afa commit 08c39a9

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/consistency.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
name: OpenVM Repo Consistency Check
22

33
on:
4+
push:
5+
pull_request:
46
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: "Version to check (e.g. v1.0.1-rc.0)"
10+
required: false
11+
default: "v1.1.1"
512

613
concurrency:
714
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
815
cancel-in-progress: true
916

17+
env:
18+
VERSION: ${{ github.event.inputs.version || 'v1.1.1' }}
19+
1020
jobs:
1121
checks:
1222
runs-on:
@@ -37,9 +47,9 @@ jobs:
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)

0 commit comments

Comments
 (0)