From 5b570cd036a806b2afe167c722a2c67e2a9166db Mon Sep 17 00:00:00 2001 From: soul-walker <31162815+soul-walker@users.noreply.github.com> Date: Sun, 15 Sep 2024 10:21:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9CICD=E5=AE=89=E8=A3=85Rust?= =?UTF-8?q?=E7=8E=AF=E5=A2=83bug4=EF=BC=8C=E5=B0=9D=E8=AF=95=E8=A7=A3?= =?UTF-8?q?=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/cicd_local_test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/cicd_local_test.yml b/.gitea/workflows/cicd_local_test.yml index a39fece..c0b04f1 100644 --- a/.gitea/workflows/cicd_local_test.yml +++ b/.gitea/workflows/cicd_local_test.yml @@ -20,8 +20,9 @@ jobs: curl --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh | sh -s -- -y echo "\n execute source $HOME/.cargo/env and validate rustup version" . "$HOME/.cargo/env" - echo $PATH rustup --version + echo "write env to ~/.bashrc" + echo ". $HOME/.cargo/env" >> ~/.bashrc mkdir -p ~/.cargo echo '[source.crates-io]' > ~/.cargo/config.toml echo 'replace-with = "rsproxy-sparse"' >> ~/.cargo/config.toml @@ -33,7 +34,7 @@ jobs: 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 ~/.cargo/config.toml + cat $HOME/.cargo/config.toml - uses: https://gitea.joylink.club/actions/rust-cache@v2 - name: build Release run: |