mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 17:18:40 +00:00
Fix binary path extraction and defer benchmark compile error
- Use BENCHMARK_BINARY= marker for reliable binary path extraction instead of fragile tail -1 (PlatformIO can print warnings after path) - Fix Scheduler_Defer: defer() is protected on Component, use set_timeout(delay=0) directly on Scheduler instead
This commit is contained in:
@@ -332,8 +332,8 @@ jobs:
|
||||
run: |
|
||||
. venv/bin/activate
|
||||
export BENCHMARK_LIB_CONFIG=$(python script/setup_codspeed_lib.py)
|
||||
# --build-only prints the binary path as the last line of stdout
|
||||
BINARY=$(script/cpp_benchmark.py --all --build-only | tail -1)
|
||||
# --build-only prints BENCHMARK_BINARY=<path> to stdout
|
||||
BINARY=$(script/cpp_benchmark.py --all --build-only | grep '^BENCHMARK_BINARY=' | tail -1 | cut -d= -f2-)
|
||||
echo "binary=$BINARY" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Run CodSpeed benchmarks
|
||||
|
||||
Reference in New Issue
Block a user