add cache, fix stage, artifacts

This commit is contained in:
Tomáš Mládek 2020-10-09 21:10:49 +02:00
parent 9005054c9f
commit 73534faec9

View file

@ -5,7 +5,13 @@ image: "rust:latest"
# - rustc --version && cargo --version # Print version info for debugging
# - cargo test --workspace --verbose
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- target/
build:cargo:
stage: build
script:
- rustc --version && cargo --version # Print version info for debugging
- cargo build --release
@ -13,4 +19,4 @@ build:cargo:
- cp -vrt dist target/release/gardenserver templates
artifacts:
paths:
- dist
- dist/