docker: Provide a rust toolchain
Install a Rust toolchain in the CI image so that it is possible to build the Rust examples. Co-developed-by: Claude <noreply@anthropic.com> Co-developed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -313,6 +313,10 @@ RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
|
||||
RUN useradd -m -U uboot
|
||||
USER uboot:uboot
|
||||
|
||||
# Install Rust toolchain for building Rust examples
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
|
||||
ENV PATH="/home/uboot/.cargo/bin:${PATH}"
|
||||
|
||||
# Populate the cache for pip to use. Get these via wget as the
|
||||
# COPY / ADD directives don't work as we need them to.
|
||||
RUN wget -O /tmp/pytest-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/test/py/requirements.txt
|
||||
|
||||
Reference in New Issue
Block a user