diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 20666dacc2..e641013221 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,9 +21,8 @@ rust-nightly: script: - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly - source /root/.cargo/env - - cargo build + - cargo build --target-dir="/cache" - cargo test --verbose - - cp target/ /cache allow_failure: false # # our own git fetch command like https://gitlab.com/gitlab-org/gitlab-runner/blob/master/shells/abstract.go