1 Star 0 Fork 59

lijian / sysmaster

forked from openEuler / sysmaster 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
requirements.sh 850 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -x
# install needed tools
#sudo yum clean all
sudo yum install -y gcc openssl-libs python3-pip musl-gcc
#git加速并安装rust工具链
git config --global url."https://github.91chi.fun/https://github.com/".insteadOf "https://github.com/"
rustup --version
if [ $? -ne 0 ]; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustlang.sh
sh rustlang.sh -y
rm -rf rustlang.sh
source ~/.bashrc
fi
# add musl target
arch=`uname -m`
rustup target add $arch-unknown-linux-musl
# Delete cache
rm -rf ~/.cargo/.package-cache
#check pre-commit
pip3 install pre-commit ruamel.yaml
pre-commit install
git config --global init.templateDir ~/.git-template
pre-commit init-templatedir ~/.git-template
# commit-msg hooks
\cp -ar ci/commit-msg .git/hooks
#echo -e "---!!!CHECK cargo-deny !!!---"
#cargo deny -V > /dev/null 2>&1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/jianli-97/sysmaster.git
git@gitee.com:jianli-97/sysmaster.git
jianli-97
sysmaster
sysmaster
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891