mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 10:15:03 +00:00
* la64能够进入到kernel_main * ci: 添加为ubuntu编译qemu-loongarch64的脚本 * feat: la64能输出hello world * la64 安装gcc && 配置github ci * chore: 更新CI工作流和构建脚本中的Docker镜像版本至v1.10 Signed-off-by: longjin <longjin@DragonOS.org>
20 lines
498 B
Bash
Executable File
20 lines
498 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CONFIG_FILE=~/.cargo/config.toml
|
|
|
|
change_rust_src_to_official() {
|
|
echo -e "[source.crates-io] \n \
|
|
registry = \"sparse+https://index.crates.io/\" \n \
|
|
[net] \n \
|
|
git-fetch-with-cli = true \n \
|
|
" > $CONFIG_FILE
|
|
}
|
|
|
|
# Check if the GITHUB_WORKFLOW environment variable is set and not empty
|
|
if [ -n "$GITHUB_ACTION" ]; then
|
|
change_rust_src_to_official
|
|
fi
|
|
|
|
|
|
exec "$@"
|