From 73534faec95aaaf465889ad535f5c211148f2611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Fri, 9 Oct 2020 21:10:49 +0200 Subject: [PATCH] add cache, fix stage, artifacts --- .gitlab-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 03ae098..693d5e7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file + - dist/ \ No newline at end of file