mirror of
https://github.com/DefectingCat/rua-list
synced 2025-07-15 16:51:31 +00:00
Update .gitlab-ci.yml file
Update .gitlab-ci.yml file Update .gitlab-ci.yml file Update .gitlab-ci.yml file
This commit is contained in:
@ -24,11 +24,11 @@ build:linux-gnu-amd64:
|
|||||||
- echo "registry = \"sparse+https://mirrors.ustc.edu.cn/crates.io-index/\"" >> $HOME/.cargo/config
|
- echo "registry = \"sparse+https://mirrors.ustc.edu.cn/crates.io-index/\"" >> $HOME/.cargo/config
|
||||||
- mkdir public
|
- mkdir public
|
||||||
- cargo build --release
|
- 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 target/release/rua-list-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG"
|
||||||
- "mv target/release/rua-list-x86_64-unknown-linux-gnu-v$GE_JOB_ID public/"
|
- "mv target/release/rua-list-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG public/"
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- "public/rua-list-x86_64-unknown-linux-gnu-v$GE_JOB_ID"
|
- "public/rua-list-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG"
|
||||||
|
|
||||||
build:linux-musl-amd64:
|
build:linux-musl-amd64:
|
||||||
stage: build
|
stage: build
|
||||||
@ -40,10 +40,12 @@ build:linux-musl-amd64:
|
|||||||
- apt install -y musl-tools
|
- apt install -y musl-tools
|
||||||
- rustup target add x86_64-unknown-linux-musl
|
- rustup target add x86_64-unknown-linux-musl
|
||||||
- cargo build --release --target x86_64-unknown-linux-musl
|
- cargo build --release --target x86_64-unknown-linux-musl
|
||||||
- mv target/x86_64-unknown-linux-musl/release/rua-list public/rua-list-x86_64-unknown-linux-musl
|
- mkdir public
|
||||||
|
- "mv target/x86_64-unknown-linux-musl/release/rua-list target/x86_64-unknown-linux-musl/release/rua-list-x86_64-unknown-linux-musl-$CI_COMMIT_TAG"
|
||||||
|
- "mv target/x86_64-unknown-linux-musl/release/rua-list-x86_64-unknown-linux-musl-$CI_COMMIT_TAG public/"
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public/rua-list-x86_64-unknown-linux-musl
|
- public/rua-list-x86_64-unknown-linux-musl-$CI_COMMIT_TAG
|
||||||
|
|
||||||
build:windows-amd64:
|
build:windows-amd64:
|
||||||
stage: build
|
stage: build
|
||||||
@ -56,10 +58,12 @@ build:windows-amd64:
|
|||||||
- rustup target add x86_64-pc-windows-gnu
|
- rustup target add x86_64-pc-windows-gnu
|
||||||
- rustup toolchain install stable-x86_64-pc-windows-gnu
|
- rustup toolchain install stable-x86_64-pc-windows-gnu
|
||||||
- cargo build --release --target x86_64-pc-windows-gnu
|
- cargo build --release --target x86_64-pc-windows-gnu
|
||||||
- mv target/x86_64-pc-windows-gnu/release/rua-list.exe public/rua-list-x86_64-pc-windows-gnu.exe
|
- mkdir public
|
||||||
|
- "mv target/x86_64-pc-windows-gnu/release/rua-list.exe target/x86_64-pc-windows-gnu/release/rua-list-x86_64-pc-windows-gnu-$CI_COMMIT_TAG.exe"
|
||||||
|
- "mv target/x86_64-pc-windows-gnu/release/rua-list-x86_64-pc-windows-gnu-$CI_COMMIT_TAG.exe public/"
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public/rua-list-x86_64-pc-windows-gnu.exe
|
- public/rua-list-x86_64-pc-windows-gnu-$CI_COMMIT_TAG.exe
|
||||||
|
|
||||||
rustdoc:
|
rustdoc:
|
||||||
stage: build
|
stage: build
|
||||||
@ -82,3 +86,12 @@ release_job:
|
|||||||
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
|
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
|
||||||
tag_name: "$CI_COMMIT_TAG"
|
tag_name: "$CI_COMMIT_TAG"
|
||||||
description: "$CI_COMMIT_TAG"
|
description: "$CI_COMMIT_TAG"
|
||||||
|
assets:
|
||||||
|
links:
|
||||||
|
- name: "rua-list-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG"
|
||||||
|
url: "https://git.rua.plus/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/cw/-/jobs/${CI_JOB_ID}/artifacts/file/public/rua-list-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG"
|
||||||
|
- name: "rua-list-x86_64-unknown-linux-musl-$CI_COMMIT_TAG"
|
||||||
|
url: "https://git.rua.plus/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/cw/-/jobs/${CI_JOB_ID}/artifacts/file/public/rua-list-x86_64-unknown-linux-musl-$CI_COMMIT_TAG"
|
||||||
|
- name: "ua-list-x86_64-pc-windows-gnu-$CI_COMMIT_TAG.exe"
|
||||||
|
url: "https://git.rua.plus/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/cw/-/jobs/${CI_JOB_ID}/artifacts/file/public/ua-list-x86_64-pc-windows-gnu-$CI_COMMIT_TAG.exe"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user