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