ci: common ci

This commit is contained in:
VC
2022-08-11 13:50:52 +02:00
parent b11595bfca
commit 5b512cb757
2 changed files with 6 additions and 19 deletions

View File

@@ -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'

View File

@@ -21,3 +21,5 @@ reqwest = "^0.11"
log = "^0.4"
simple_logger = "^2.1"
[profile.release]
strip = true