tools/ci: Include fetching pico-sdk in the CI environment setup

The Raspberry Pi pico-sdk was not available in the CI build process,
so the test builds for the rp2040 and rp2350 uCs could not execute the
last packaging stage. The SDK is now fetched and included, both at
runtime and in the Docker image.

Signed-off-by: Niccolò Maggioni <nicco.maggioni+nuttx@gmail.com>
This commit is contained in:
Niccolò Maggioni
2025-08-17 16:47:26 +02:00
committed by Xiang Xiao
parent d250808c1c
commit 0f005b7b8c
3 changed files with 58 additions and 2 deletions
+14
View File
@@ -293,6 +293,15 @@ RUN mkdir -p wamrc && \
curl -s -L "https://github.com/bytecodealliance/wasm-micro-runtime/releases/download/WAMR-1.1.2/wamrc-1.1.2-x86_64-ubuntu-20.04.tar.gz" \
| tar -C wamrc -xz
###############################################################################
# Build image for tool required by Raspberry Pi pico-sdk builds
###############################################################################
FROM nuttx-toolchain-base AS nuttx-toolchain-raspberrypi-pico-sdk
# Download the latest pico-sdk source archive
RUN mkdir -p pico-sdk && \
curl -s -L "https://github.com/raspberrypi/pico-sdk/releases/download/2.2.0/pico-sdk-2.2.0.tar.gz" \
| tar -C pico-sdk --strip-components 1 -xz
###############################################################################
# Final Docker image used for running CI system. This includes all toolchains
# supported by the CI system.
@@ -478,6 +487,11 @@ COPY --from=nuttx-toolchain-esp32 /tools/blobs/* /tools/blobs/esp-bins/
COPY --from=nuttx-toolchain-wasm /tools/wasi-sdk/ wasi-sdk/
ENV WASI_SDK_PATH="/tools/wasi-sdk"
ENV PATH="/tools/wamr:$PATH"
COPY --from=nuttx-toolchain-esp32 /tools/blobs/* /tools/blobs/esp-bins/
# Raspberry Pi pico-sdk source
COPY --from=nuttx-toolchain-raspberrypi-pico-sdk /tools/pico-sdk/ pico-sdk/
ENV PICO_SDK_PATH="/tools/pico-sdk"
# gn tool
RUN mkdir -p /tools/gn