From e60791f0c4ba1446397271c372c0967623600f2b Mon Sep 17 00:00:00 2001 From: Oleg Plakida Date: Tue, 29 Aug 2023 14:16:49 +0100 Subject: [PATCH] paritytech/ci_cd#860: testing --- .gitlab-ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cc33da7e74224..73a37fbbb7e69 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -105,13 +105,14 @@ default: - !reference [.rust-info-script, script] - !reference [.rusty-cachier, before_script] - !reference [.pipeline-stopper-vars, script] + after_script: + - !reference [.rusty-cachier, after_script] cache: - key: cargo-$CI_COMMIT_REF_SLUG-$CI_JOB_NAME_SLUG + key: Cargo.lock fallback_keys: - cargo-$CI_DEFAULT_BRANCH-$CI_JOB_NAME_SLUG paths: - - cargo_home - - cargo_target_dir + - dependencies.tar policy: pull-push tags: - linux-docker-vm-c2 @@ -128,6 +129,10 @@ default: - git restore-mtime - rusty-cachier --version - rusty-cachier project touch-changed + - "[ -f dependencies.tar ] && (tar xf dependencies.tar || echo Ignoring error while extracting dependencies.tar...)" + after_script: + - tar cfW dependencies.tar $CARGO_HOME $CARGO_TARGET_DIR + .common-refs: rules: