mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 09:06:32 +00:00
NovaShell替换为默认shell (#456)
* NovaShell替换为默认shell * delete some envvar * 自动从dragonos镜像站更新dadk * 更新github ci环境 * 修复yml格式问题 * 更新novashell到95738b235f --------- Co-authored-by: longjin <longjin@DragonOS.org>
This commit is contained in:
15
.github/workflows/cache-toolchain.yml
vendored
15
.github/workflows/cache-toolchain.yml
vendored
@ -57,5 +57,18 @@ jobs:
|
||||
rustup component add rustfmt
|
||||
rustup component add rustfmt --toolchain nightly-2023-01-21-x86_64-unknown-linux-gnu
|
||||
rustup component add rustfmt --toolchain nightly-2023-08-15-x86_64-unknown-linux-gnu
|
||||
cargo install dadk --version 0.1.2
|
||||
cargo install dadk --version 0.1.6
|
||||
|
||||
# Create custom Rust toolchain
|
||||
fork_toolchain_from="nightly-2023-08-15-x86_64-unknown-linux-gnu"
|
||||
custom_toolchain="nightly-2023-08-15-x86_64-unknown-linux_dragonos-gnu"
|
||||
custom_toolchain_dir="$(dirname $(rustc --print sysroot))/${custom_toolchain}"
|
||||
echo "Custom toolchain does not exist, creating..."
|
||||
rustup toolchain install ${fork_toolchain_from}
|
||||
rustup component add --toolchain ${fork_toolchain_from} rust-src
|
||||
rustup target add --toolchain ${fork_toolchain_from} x86_64-unknown-linux-musl
|
||||
cp -r $(dirname $(rustc --print sysroot))/${fork_toolchain_from} ${custom_toolchain_dir}
|
||||
self_contained_dir=${custom_toolchain_dir}/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained
|
||||
cp -f ${self_contained_dir}/crt1.o ${self_contained_dir}/rcrt1.o
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user