From b6d8aea3a9b185481271061c017c5d5ad25f69f2 Mon Sep 17 00:00:00 2001 From: soul-walker <31162815+soul-walker@users.noreply.github.com> Date: Sun, 15 Sep 2024 10:26:48 +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=83bug5=EF=BC=8C=E5=B0=9D=E8=AF=95=E8=A7=A3?= =?UTF-8?q?=E5=86=B32?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/cicd_local_test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/cicd_local_test.yml b/.gitea/workflows/cicd_local_test.yml index c0b04f1..caff0ce 100644 --- a/.gitea/workflows/cicd_local_test.yml +++ b/.gitea/workflows/cicd_local_test.yml @@ -18,11 +18,10 @@ jobs: export RUSTUP_DIST_SERVER="https://rsproxy.cn" export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup" 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" - rustup --version - echo "write env to ~/.bashrc" + echo "write source $HOME/.cargo/env to ~/.bashrc" echo ". $HOME/.cargo/env" >> ~/.bashrc + cat ~/.bashrc + . ~/.bashrc mkdir -p ~/.cargo echo '[source.crates-io]' > ~/.cargo/config.toml echo 'replace-with = "rsproxy-sparse"' >> ~/.cargo/config.toml @@ -38,6 +37,7 @@ jobs: - uses: https://gitea.joylink.club/actions/rust-cache@v2 - name: build Release run: | + cat ~/.bashrc echo $PATH rustup target add x86_64-unknown-linux-musl cargo build --release --target x86_64-unknown-linux-musl