From 5b512cb7575ee9535fa76e78ea6f31b552f3a72d Mon Sep 17 00:00:00 2001 From: VC Date: Thu, 11 Aug 2022 13:50:52 +0200 Subject: [PATCH] ci: common ci --- .gitlab-ci.yml | 23 ++++------------------- Cargo.toml | 2 ++ 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bedad49..71d49ab 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,20 +1,5 @@ --- - -stages: - - build - -rust-latest: - stage: build - artifacts: - paths: - - target/release/scootaloo - image: rust:latest - script: - - rustup component add rustfmt - - rustup component add clippy - - cargo fmt -- --check - - cargo check - - cargo clippy -- -D warnings - - cargo test - - cargo build --release --verbose - - strip target/release/${CI_PROJECT_NAME} +include: + project: 'veretcle/ci-common' + ref: 'main' + file: 'ci_rust.yml' diff --git a/Cargo.toml b/Cargo.toml index f0d75b7..55cd1ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,3 +21,5 @@ reqwest = "^0.11" log = "^0.4" simple_logger = "^2.1" +[profile.release] +strip = true