add cache, fix stage, artifacts
This commit is contained in:
parent
9005054c9f
commit
73534faec9
1 changed files with 7 additions and 1 deletions
|
@ -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/
|
Loading…
Reference in a new issue