+ Base job for building cargo binaries
script field is the only that "userland" code needs to override
This commit is contained in:
parent
4416d08994
commit
1fd47481c8
16
ci/cargo.yml
Normal file
16
ci/cargo.yml
Normal 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/
|
Loading…
Reference in New Issue
Block a user