add ci for building

This commit is contained in:
Tomáš Mládek 2020-10-09 21:06:53 +02:00
parent a2eb0ceb4e
commit 9005054c9f

16
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,16 @@
image: "rust:latest"
#test:cargo:
# script:
# - rustc --version && cargo --version # Print version info for debugging
# - cargo test --workspace --verbose
build:cargo:
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