Skip to content

Commit a229677

Browse files
committed
chore: ci
1 parent cdd8a27 commit a229677

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/consistency.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,23 @@ name: OpenVM Repo Consistency Check
22

33
on:
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

616
concurrency:
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

1020
jobs:
11-
checks:
21+
consistency-check:
1222
runs-on:
1323
- runs-on=${{ github.run_id }}
1424
- family=m7a.24xlarge
@@ -25,7 +35,7 @@ jobs:
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: |
@@ -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)