From c1899bcbdd9dce985abab6c22f4cb257f9151c6b Mon Sep 17 00:00:00 2001 From: xfy xfy Date: Fri, 12 May 2023 06:40:55 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 70 -------------------------------------------------- 1 file changed, 70 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ca1cab2..909608f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,76 +67,6 @@ rustdoc: paths: - target/doc -stages: - - build - - release - -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 - - 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/rua-list target/release/rua-list-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG" - - "mv target/release/rua-list-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG public/" - artifacts: - paths: - - "public/rua-list-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG" - -build:linux-musl-amd64: - stage: build - image: rust:latest - rules: - - if: $CI_COMMIT_TAG - script: - - apt update - - apt install -y musl-tools - - rustup target add x86_64-unknown-linux-musl - - cargo build --release --target 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: - paths: - - public/rua-list-x86_64-unknown-linux-musl-$CI_COMMIT_TAG - -build:windows-amd64: - stage: build - image: rust:latest - rules: - - if: $CI_COMMIT_TAG - script: - - apt update - - apt install -y g++-mingw-w64-x86-64 - - rustup target add x86_64-pc-windows-gnu - - rustup toolchain install stable-x86_64-pc-windows-gnu - - cargo build --release --target x86_64-pc-windows-gnu - - 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: - paths: - - public/rua-list-x86_64-pc-windows-gnu-$CI_COMMIT_TAG.exe - -rustdoc: - stage: build - image: rust - rules: - - if: $CI_COMMIT_TAG - script: - - cargo doc - artifacts: - paths: - - target/doc - #release_job: # stage: release # image: registry.gitlab.com/gitlab-org/release-cli:latest