Commit d86b419
committed
Fix build size regex patterns in CI workflow
Updated regex patterns to correctly extract Flash and RAM percentages
from PlatformIO build output using Perl-compatible regex (grep -oP).
Changes:
- Flash regex: grep -oP 'Flash:\s+\[.*?\]\s+\K[0-9.]+%'
- RAM regex: grep -oP 'RAM:\s+\[.*?\]\s+\K[0-9.]+%'
The new patterns correctly handle the actual output format:
"RAM: [== ] 15.8% (used 51788 bytes from 327680 bytes)"
"Flash: [======== ] 77.7% (used 1018701 bytes from 1310720 bytes)"
Previous patterns were failing to extract values properly.
Tested and verified working with current build output.1 parent cf555f1 commit d86b419
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
| 159 | + | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
0 commit comments