Skip to content

Commit 7b5b371

Browse files
authored
Merge branch 'main' into develop
2 parents 3ae8c65 + bd851cb commit 7b5b371

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/consistency.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ on:
77
description: "Version to check"
88
required: true
99

10-
release:
11-
types: [published]
12-
1310
env:
14-
VERSION: ${{ github.event.inputs.version || github.event.release.tag_name }}
11+
VERSION: ${{ github.event.inputs.version }}
1512

1613
concurrency:
17-
group: ${{ github.workflow }}-${{ github.event.inputs.version || github.event.release.tag_name }}
14+
group: ${{ github.workflow }}-${{ github.event.inputs.version }}
1815
cancel-in-progress: true
1916

2017
jobs:
@@ -28,6 +25,10 @@ jobs:
2825
- name: Checkout current repo
2926
uses: actions/checkout@v4
3027

28+
- name: Extract major.minor into TRUNC_VERSION
29+
id: extract
30+
run: echo "TRUNC_VERSION=$(echo '${{ env.VERSION }}' | cut -d '.' -f1-2)" >> "$GITHUB_ENV"
31+
3132
- name: Install solc # svm should support arm64 linux
3233
run: (hash svm 2>/dev/null || cargo install --version 0.2.23 svm-rs) && svm install 0.8.19 && solc --version
3334

@@ -47,9 +48,9 @@ jobs:
4748

4849
- name: Compare output to version folder
4950
run: |
50-
diff -r ~/.openvm/halo2/src/${VERSION} src/${VERSION} --exclude=verifier.bytecode.json
51+
diff -r ~/.openvm/halo2/src/${TRUNC_VERSION} src/${TRUNC_VERSION} --exclude=verifier.bytecode.json
5152
5253
- name: Compare compiled bytecode in repo to verifier.bytecode.json
5354
run: |
5455
forge build --force
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)
56+
diff <(jq -r '.bytecode.object | ltrimstr("0x")' out/OpenVmHalo2Verifier.sol/OpenVmHalo2Verifier.json) <(jq -r '.bytecode | ltrimstr("0x")' ~/.openvm/halo2/src/${TRUNC_VERSION}/verifier.bytecode.json)

0 commit comments

Comments
 (0)