Rust 进程使用 GitHub 操作失败,退出代码为 101
Rust process failed with exit code 101 using GitHub actions
代码在我的本地机器上运行良好,没有报错。
但是当我推送到 GitHub 时,构建失败。
这是我的工作流文件的块:
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Install `rust-src` Rustup Component
run: rustup component add rust-src
- name: Run `cargo check`
uses: actions-rs/cargo@v1
with:
command: check
这是错误。
error: failed to read `/usr/share/rust/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/Cargo.toml`
21
##[error]failed to read `/usr/share/rust/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/Cargo.toml`
22
Caused by:
23
No such file or directory (os error 2)
24
##[error]The process '/usr/share/rust/.cargo/bin/cargo' failed with exit code 101
在此之前,正在安装所有依赖项。您可能会看到整个日志 here.
这是最近一晚的货物错误:https://github.com/rust-lang/cargo/issues/8557. It was caused by the directory layout changes in https://github.com/rust-lang/rust/pull/73265。
代码在我的本地机器上运行良好,没有报错。 但是当我推送到 GitHub 时,构建失败。
这是我的工作流文件的块:
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Install `rust-src` Rustup Component
run: rustup component add rust-src
- name: Run `cargo check`
uses: actions-rs/cargo@v1
with:
command: check
这是错误。
error: failed to read `/usr/share/rust/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/Cargo.toml`
21
##[error]failed to read `/usr/share/rust/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/Cargo.toml`
22
Caused by:
23
No such file or directory (os error 2)
24
##[error]The process '/usr/share/rust/.cargo/bin/cargo' failed with exit code 101
在此之前,正在安装所有依赖项。您可能会看到整个日志 here.
这是最近一晚的货物错误:https://github.com/rust-lang/cargo/issues/8557. It was caused by the directory layout changes in https://github.com/rust-lang/rust/pull/73265。