diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 426f834..086d4dc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,12 +11,12 @@ build:linux-gnu-amd64: # rules: # - if: $CI_COMMIT_TAG script: - # - mkdir $HOME/.cargo - # - echo "[source.crates-io]" >> $HOME/.cargo/config - # - echo "replace-with = 'ustc'" >> $HOME/.cargo/config - # - echo "" >> $HOME/.cargo/config - # - echo "[source.ustc]" >> $HOME/.cargo/config - # - echo "registry = \"sparse+https://mirrors.ustc.edu.cn/crates.io-index/\"" >> $HOME/.cargo/config + - mkdir $HOME/.cargo + - echo "[source.crates-io]" >> $HOME/.cargo/config + - echo "replace-with = 'ustc'" >> $HOME/.cargo/config + - echo "" >> $HOME/.cargo/config + - echo "[source.ustc]" >> $HOME/.cargo/config + - echo "registry = \"sparse+https://mirrors.ustc.edu.cn/crates.io-index/\"" >> $HOME/.cargo/config - mkdir public - cargo build --release - "mv target/release/$BINARY_NAME target/release/$BINARY_NAME-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG"