From a3994f0218bad0da2e873a89d2142bc87899b24e Mon Sep 17 00:00:00 2001 From: soul-walker <31162815+soul-walker@users.noreply.github.com> Date: Mon, 23 Sep 2024 16:37:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4cicd=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/cicd_local_test.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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