Skip to content

Commit

Permalink
feat(ci): rustup target add all # 安装所有 targets
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp-CN committed Aug 23, 2024
1 parent a6cbd76 commit 7f18516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# 加载 cargo 环境
source $HOME/.bashrc

# 安装 riscv64 编译目标工具链
rustup target add riscv64gc-unknown-none-elf

# Current dir: /ci
echo PWD=$PWD && ls -alh

Expand Down

0 comments on commit 7f18516

Please sign in to comment.