mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-20 09:01:19 +02:00
ci: common ci
This commit is contained in:
@@ -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'
|
||||
|
@@ -21,3 +21,5 @@ reqwest = "^0.11"
|
||||
log = "^0.4"
|
||||
simple_logger = "^2.1"
|
||||
|
||||
[profile.release]
|
||||
strip = true
|
||||
|
Reference in New Issue
Block a user