+ Base job for building cargo binaries

script field is the only that "userland" code needs to
override
This commit is contained in:
shockrah 2022-03-27 00:41:47 -07:00
parent 4416d08994
commit 1fd47481c8

16
ci/cargo.yml Normal file
View File

@ -0,0 +1,16 @@
.cargo-builder:
image: rustlang/rust:nightly
only:
refs:
- master
before_script:
- mkdir -p build
- cp api/templates/ api/static/ build/ -r
after_script:
- cp api/target/release/clippable-server build/server
- cp ./scripts/ build/ -r
- cp readme.md build/
- sh ./scripts/default-rocket-toml.sh
artifacts:
paths:
- build/