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