mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
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:
committed by
Xiang Xiao
parent
d250808c1c
commit
0f005b7b8c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user