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 @@
|
|||||||
---
|
---
|
||||||
|
include:
|
||||||
stages:
|
project: 'veretcle/ci-common'
|
||||||
- build
|
ref: 'main'
|
||||||
|
file: 'ci_rust.yml'
|
||||||
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}
|
|
||||||
|
@@ -21,3 +21,5 @@ reqwest = "^0.11"
|
|||||||
log = "^0.4"
|
log = "^0.4"
|
||||||
simple_logger = "^2.1"
|
simple_logger = "^2.1"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
strip = true
|
||||||
|
Reference in New Issue
Block a user