Cache the Cargo dir and build artifacts

This commit is contained in:
Paul van Tilburg 2019-04-02 16:11:43 +02:00
parent 6528da79db
commit de70a03c11
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,16 @@
# Use Rust docker image, see: https://hub.docker.com/_/rust/
image: rust:latest
# Set the Cargo dir manually so it can be cached
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
# Cache the Cargo dir and build artifacts
cache:
paths:
- cargo/
- target/
# Add the thumbv7em-none-eabihf target for Rust
before_script:
- rustup target add thumbv7em-none-eabihf