mirror of
https://github.com/DefectingCat/rua-list
synced 2025-07-15 16:51:31 +00:00
Update .gitlab-ci.yml file
This commit is contained in:
@ -17,11 +17,17 @@ build:pre:
|
|||||||
build:linux-gnu-amd64:
|
build:linux-gnu-amd64:
|
||||||
stage: build
|
stage: build
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
dependencies:
|
|
||||||
- build:pre
|
|
||||||
script:
|
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 public
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
- mv target/release/rua-list public/rua-list-x86_64-unknown-linux-gnu-v$CI_COMMIT_TAG
|
- mv target/release/rua-list target/release/rua-list-x86_64-unknown-linux-gnu-v${CI_COMMIT_TAG}
|
||||||
|
- mv target/release/rua-list-x86_64-unknown-linux-gnu-v${CI_COMMIT_TAG} public/
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public/rua-list-x86_64-unknown-linux-gnu
|
- public/rua-list-x86_64-unknown-linux-gnu
|
||||||
|
Reference in New Issue
Block a user