fix(ci): set-target esp32s3 before idf.py build
ESP-IDF 5.x requires explicit set-target even when CONFIG_IDF_TARGET is present in sdkconfig.defaults. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d193b5b28f
commit
b8684aad68
1 changed files with 3 additions and 2 deletions
|
|
@ -7,10 +7,11 @@ FROM espressif/idf:v5.2 AS firmware-builder
|
|||
WORKDIR /project
|
||||
COPY firmware/ ./
|
||||
|
||||
# Source export.sh to activate IDF toolchain (entrypoint is not called in build stages)
|
||||
# Source export.sh to activate IDF toolchain (entrypoint is not called in build stages).
|
||||
# set-target must be run explicitly before build even when CONFIG_IDF_TARGET is in sdkconfig.defaults.
|
||||
# idf.py build produces build/spaxel-firmware.bin
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
RUN . $IDF_PATH/export.sh && idf.py build
|
||||
RUN . $IDF_PATH/export.sh && idf.py set-target esp32s3 && idf.py build
|
||||
|
||||
# Stage 2: Build the Go binary
|
||||
FROM golang:1.25-bookworm AS builder
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue