Commit ebf060a5 authored by Arthur Carlsson's avatar Arthur Carlsson

Added cache for cargo stuff

parent fb274cb2
Pipeline #15868043 passed with stage
in 9 minutes and 39 seconds
......@@ -8,12 +8,19 @@ image: "rust:latest"
# - redis:latest
# - postgres:latest
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
before_script:
- rustup install nightly
- cargo +nightly install rustfmt-nightly --force
# Use cargo to test the project
test:cargo:
cache:
paths:
- target/
- cargo/
script:
- rustc --version && cargo --version # Print version info for debugging
- cargo +nightly fmt -- --write-mode=diff # Make sure format is OK
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment