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:
@ -2,9 +2,19 @@ stages:
|
||||
- build
|
||||
- release
|
||||
|
||||
build:test:
|
||||
stage: build
|
||||
image: rust:latest
|
||||
script:
|
||||
- echo 'running release_job'
|
||||
- echo 'Previous Job ID is printed below'
|
||||
- echo $GE_JOB_ID
|
||||
|
||||
build:linux-gnu-amd64:
|
||||
stage: build
|
||||
image: rust:latest
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
script:
|
||||
- mkdir $HOME/.cargo
|
||||
- echo "[source.crates-io]" >> $HOME/.cargo/config
|
||||
@ -14,11 +24,11 @@ build:linux-gnu-amd64:
|
||||
- echo "registry = \"sparse+https://mirrors.ustc.edu.cn/crates.io-index/\"" >> $HOME/.cargo/config
|
||||
- mkdir public
|
||||
- cargo build --release
|
||||
- 'mv target/release/rua-list target/release/rua-list-x86_64-unknown-linux-gnu-v$GE_JOB_ID'
|
||||
- 'mv target/release/rua-list-x86_64-unknown-linux-gnu-v$GE_JOB_ID public/'
|
||||
- "mv target/release/rua-list target/release/rua-list-x86_64-unknown-linux-gnu-v$GE_JOB_ID"
|
||||
- "mv target/release/rua-list-x86_64-unknown-linux-gnu-v$GE_JOB_ID public/"
|
||||
artifacts:
|
||||
paths:
|
||||
- 'public/rua-list-x86_64-unknown-linux-gnu-v$GE_JOB_ID'
|
||||
- "public/rua-list-x86_64-unknown-linux-gnu-v$GE_JOB_ID"
|
||||
|
||||
build:linux-musl-amd64:
|
||||
stage: build
|
||||
|
Reference in New Issue
Block a user