File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 77 description : " Version to check"
88 required : true
99
10- release :
11- types : [published]
12-
1310env :
14- VERSION : ${{ github.event.inputs.version || github.event.release.tag_name }}
11+ VERSION : ${{ github.event.inputs.version }}
1512
1613concurrency :
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
2017jobs :
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
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)
You can’t perform that action at this time.
0 commit comments