gardenserver/.gitlab-ci.yml

25 lines
489 B
YAML
Raw Normal View History

2020-10-09 21:06:53 +02:00
image: "rust:latest"
#test:cargo:
# script:
# - rustc --version && cargo --version # Print version info for debugging
# - cargo test --workspace --verbose
2020-10-09 21:10:49 +02:00
cache:
2021-03-06 11:57:48 +01:00
key: gardenserver
2020-10-09 21:10:49 +02:00
paths:
- target/
2020-10-09 21:06:53 +02:00
build:cargo:
2020-10-09 21:10:49 +02:00
stage: build
2020-10-20 20:04:45 +02:00
only:
- tags
2020-10-09 21:06:53 +02:00
script:
2020-10-20 20:04:45 +02:00
- rustc --version && cargo --version # Print version info for debugging
2020-10-09 21:06:53 +02:00
- cargo build --release
- mkdir dist
- cp -vrt dist target/release/gardenserver templates
artifacts:
paths:
2020-10-20 20:04:45 +02:00
- dist/