From 7f1851608105248b31883c17e61512f0ac2dc94e Mon Sep 17 00:00:00 2001 From: zjp Date: Fri, 23 Aug 2024 16:08:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(ci):=20rustup=20target=20add=20all=20#=20?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=89=80=E6=9C=89=20targets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- run.sh | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 881cda6..6a212db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,8 @@ FROM node:lts # 下载最新的 nightly Rust 工具链 RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y && \ . "$HOME/.cargo/env" && \ - rustup toolchain install nightly --allow-downgrade --profile minimal --component rustfmt,clippy,miri + rustup toolchain install nightly --allow-downgrade --profile minimal --component rustfmt,clippy,miri && \ + rustup target add all # 安装所有 targets # 把该仓库内容复制进镜像 COPY . /ci WORKDIR /ci diff --git a/run.sh b/run.sh index 057fb84..c18978a 100755 --- a/run.sh +++ b/run.sh @@ -3,9 +3,6 @@ # 加载 cargo 环境 source $HOME/.bashrc -# 安装 riscv64 编译目标工具链 -rustup target add riscv64gc-unknown-none-elf - # Current dir: /ci echo PWD=$PWD && ls -alh