gitea-actions: pre-bake esptoolpy + mkspiffs in the PlatformIO CI image
Both are pulled on demand by pio run/buildfs; without them baked in, every ephemeral job container re-downloads them. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -23,7 +23,8 @@ RUN pip install --no-cache-dir platformio=={{ platformio_core_version }}
|
|||||||
# Seed project mirroring the real projects' platformio.ini so `pio pkg install`
|
# Seed project mirroring the real projects' platformio.ini so `pio pkg install`
|
||||||
# pulls the platform + toolchain + framework packages into the core dir.
|
# pulls the platform + toolchain + framework packages into the core dir.
|
||||||
RUN mkdir -p /tmp/seed/src \
|
RUN mkdir -p /tmp/seed/src \
|
||||||
&& printf '[env:seed]\nplatform = espressif32@{{ pio_espressif32_version }}\nframework = arduino\nboard = esp32dev\nboard_build.filesystem = spiffs\n' > /tmp/seed/platformio.ini \
|
&& printf '[env:seed]\nplatform = espressif32@{{ pio_espressif32_version }}\nframework = arduino\nboard = esp32dev\nboard_build.filesystem = spiffs\nplatform_packages = platformio/tool-esptoolpy\n' > /tmp/seed/platformio.ini \
|
||||||
&& pio pkg install -d /tmp/seed \
|
&& pio pkg install -d /tmp/seed \
|
||||||
|
&& pio pkg install -d /tmp/seed --tool platformio/tool-mkspiffs \
|
||||||
&& rm -rf /tmp/seed \
|
&& rm -rf /tmp/seed \
|
||||||
&& chmod -R a+rX ${PLATFORMIO_CORE_DIR}
|
&& chmod -R a+rX ${PLATFORMIO_CORE_DIR}
|
||||||
|
|||||||
Reference in New Issue
Block a user