修改CICD,使用软链接处理Rust环境问题
Some checks failed
build / build-rust (push) Failing after 53s

This commit is contained in:
soul-walker 2024-09-15 14:16:53 +08:00
parent 82ce88a92e
commit eb239b659a

View File

@ -32,11 +32,10 @@ jobs:
echo '[net]' >> ~/.cargo/config.toml echo '[net]' >> ~/.cargo/config.toml
echo 'git-fetch-with-cli = true' >> ~/.cargo/config.toml echo 'git-fetch-with-cli = true' >> ~/.cargo/config.toml
cat $HOME/.cargo/config.toml cat $HOME/.cargo/config.toml
sudo ln -sf $HOME/.cargo/bin/* /usr/local/bin/
- uses: https://gitea.joylink.club/actions/rust-cache@v2 - uses: https://gitea.joylink.club/actions/rust-cache@v2
- name: build Release - name: build Release
run: | run: |
cat ~/.bashrc
. ~/.bashrc
echo $PATH echo $PATH
rustup target add x86_64-unknown-linux-musl rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl cargo build --release --target x86_64-unknown-linux-musl