From 1e5b33d953edf397056d89a36d947764b1e330e1 Mon Sep 17 00:00:00 2001 From: kxkm Date: Fri, 27 Mar 2026 06:14:43 +0100 Subject: [PATCH] ci: copy pio artifacts to wokwi.toml expected path before Wokwi sim wokwi.toml references .pio/build/esp32s3_waveshare/firmware.{bin,elf} (relative to firmware/) but PlatformIO writes to /tmp/kl_pio_build (build_dir in platformio.ini). Copy after build to bridge the gap. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d696ddc..e4721d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,6 +107,10 @@ jobs: run: | pip install platformio cd firmware && pio run -e esp32s3_waveshare + # pio uses build_dir=/tmp/kl_pio_build; copy artifacts to where wokwi.toml expects them + mkdir -p .pio/build/esp32s3_waveshare + cp /tmp/kl_pio_build/esp32s3_waveshare/firmware.bin .pio/build/esp32s3_waveshare/ + cp /tmp/kl_pio_build/esp32s3_waveshare/firmware.elf .pio/build/esp32s3_waveshare/ - name: Wokwi CI simulation uses: wokwi/wokwi-ci-action@v1