summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJonas Zohren <gitlab-jfowl-0ux98@sh14.de>2022-01-13 22:24:47 +0000
committerJonas Zohren <gitlab-jfowl-0ux98@sh14.de>2022-01-13 22:24:47 +0000
commitf67785caaf6a4be5c7d330df0f7a89781aa21f91 (patch)
treefab49aeedb7088e33bb01e8465a8817f8bdd16b3 /.gitlab-ci.yml
parent1119c2f5108a99b8d9438e14fc9538fe05bb9da4 (diff)
downloadconduit-f67785caaf6a4be5c7d330df0f7a89781aa21f91.zip
Fix(ci): Disable CARGO_HOME caching
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml13
1 files changed, 1 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1dedd8f..f47327b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,18 +23,12 @@ variables:
interruptible: true
image: "rust:latest"
tags: ["docker"]
- cache:
- paths:
- - cargohome
- key: "build_cache--$TARGET--$CI_COMMIT_BRANCH"
variables:
CARGO_PROFILE_RELEASE_LTO: "true"
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: "1"
CARGO_INCREMENTAL: "false" # https://matklad.github.io/2021/09/04/fast-rust-builds.html#ci-workflow
- CARGO_HOME: $CI_PROJECT_DIR/cargohome
before_script:
- 'echo "Building for target $TARGET"'
- - "mkdir -p $CARGO_HOME"
- "rustc --version && cargo --version && rustup show" # Print version info for debugging
- "rustup target add $TARGET"
# If provided, bring in caching through sccache, which uses an external S3 endpoint to store compilation results:
@@ -219,15 +213,10 @@ test:cargo:
image: "rust:latest"
tags: ["docker"]
variables:
- CARGO_HOME: "$CI_PROJECT_DIR/cargohome"
CARGO_INCREMENTAL: "false" # https://matklad.github.io/2021/09/04/fast-rust-builds.html#ci-workflow
- cache:
- paths:
- - cargohome
- key: "test_cache--$CI_COMMIT_BRANCH"
interruptible: true
before_script:
- - mkdir -p $CARGO_HOME
+ # - mkdir -p $CARGO_HOME
- apt-get update -yqq
- apt-get install -yqq --no-install-recommends build-essential libssl-dev pkg-config
- rustup component add clippy rustfmt