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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user