diff --git a/.gitea/workflows/cicd_local_test.yml b/.gitea/workflows/cicd_local_test.yml index 2bbbb5c..14a0724 100644 --- a/.gitea/workflows/cicd_local_test.yml +++ b/.gitea/workflows/cicd_local_test.yml @@ -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