24 lines
498 B
YAML
24 lines
498 B
YAML
image: "rust:latest"
|
|
|
|
#test:cargo:
|
|
# script:
|
|
# - 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
|
|
only:
|
|
- tags
|
|
script:
|
|
- rustc --version && cargo --version # Print version info for debugging
|
|
- cargo build --release
|
|
- mkdir dist
|
|
- cp -vrt dist target/release/gardenserver templates
|
|
artifacts:
|
|
paths:
|
|
- dist/
|