调整cicd build
Some checks failed
build / build-rust (push) Failing after 1m26s

This commit is contained in:
soul-walker 2024-09-23 16:37:50 +08:00
parent bf9b3f501c
commit a3994f0218

View File

@ -14,8 +14,21 @@ jobs:
with:
submodules: recursive
- uses: https://gitea.joylink.club/actions/rust-cache@v2
- name: Install musl-tools
run: apt-get update && apt-get install -y musl-tools
- name: build Release
run: |
echo '[source.crates-io]' > ~/.cargo/config.toml
echo 'replace-with = "rsproxy-sparse"' >> ~/.cargo/config.toml
echo '[source.rsproxy]' >> ~/.cargo/config.toml
echo 'registry = "https://rsproxy.cn/crates.io-index"' >> ~/.cargo/config.toml
echo '[source.rsproxy-sparse]' >> ~/.cargo/config.toml
echo 'registry = "sparse+https://rsproxy.cn/index/"' >> ~/.cargo/config.toml
echo '[registries.rsproxy]' >> ~/.cargo/config.toml
echo 'index = "https://rsproxy.cn/crates.io-index"' >> ~/.cargo/config.toml
echo '[net]' >> ~/.cargo/config.toml
echo 'git-fetch-with-cli = true' >> ~/.cargo/config.toml
cat $HOME/.cargo/config.toml
. ~/.bashrc
echo $PATH
rustup target add x86_64-unknown-linux-musl