This commit is contained in:
parent
bf9b3f501c
commit
a3994f0218
@ -14,8 +14,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: https://gitea.joylink.club/actions/rust-cache@v2
|
- 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
|
- name: build Release
|
||||||
run: |
|
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
|
. ~/.bashrc
|
||||||
echo $PATH
|
echo $PATH
|
||||||
rustup target add x86_64-unknown-linux-musl
|
rustup target add x86_64-unknown-linux-musl
|
||||||
|
Loading…
Reference in New Issue
Block a user