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:
J. Nick Koston
2026-03-17 01:42:37 -10:00
parent d5f2c93e68
commit b87b4102e0
3 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -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