Skip to content

Commit 472a60f

Browse files
committed
Use develop branch for bytecode comparison of unreleased versions
1 parent af51718 commit 472a60f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ 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.bak '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.bak '84s|sed -E .*|sed -E '\''s/^[[:space:]]*([0-9.]+)(-ci\\.[0-9.]+)?(\\+commit\\.[0-9a-f]+).*/\\1\\3/'\''|' "$SCRIPT"
99+
100+
rm -f "$SCRIPT.bak"
101+
90102
- name: Generate reports from matching release binaries
91103
run: |
92104
base_dir="$PWD"

0 commit comments

Comments
 (0)