Skip to content

Commit

Permalink
Update .gitlab-ci.yml file
Browse files Browse the repository at this point in the history
add crates mirror
  • Loading branch information
DefectingCat committed Aug 1, 2023
1 parent 41aee68 commit 2964d74
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2964d74

Please sign in to comment.