Skip to content

Commit 971883e

Browse files
committed
Use develop branch for bytecode comparison of unreleased versions
1 parent 5ac859b commit 971883e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/t-bytecode-compare.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ jobs:
8787
# We need more than just a single revision to be able to use diff
8888
fetch-depth: 0
8989

90+
- name: Patch bytecode script to use develop branch for unreleased versions
91+
run: |
92+
SCRIPT="solidity/scripts/solc-bin/bytecode_reports_for_modified_binaries.sh"
93+
94+
# Use develop branch instead of version-specific branch
95+
sed -i 's/--branch "v\${solidity_version}"/--branch "develop"/' "$SCRIPT"
96+
97+
# Patch validation to accept CI builds by stripping -ci.DATE before comparison
98+
sed -i '84s|sed -E .*|sed -E '\''s/^[[:space:]]*([0-9.]+)(-ci\\.[0-9.]+)?(\\+commit\\.[0-9a-f]+).*/\\1\\3/'\''|' "$SCRIPT"
99+
90100
- name: Generate reports from matching release binaries
91101
run: |
92102
base_dir="$PWD"

0 commit comments

Comments
 (0)