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