From: Jacob Lifshay Date: Thu, 13 May 2021 01:31:07 +0000 (-0700) Subject: add build caching X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48a08d77b3f278d836aaad83a150c523509c7e99;p=vector-math.git add build caching --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4d9c541..960f310 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,7 @@ +variables: + XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache + CARGO_HOME: $XDG_CACHE_HOME/.cargo + stages: - build @@ -10,6 +14,9 @@ rust-latest: parallel: matrix: - FEATURES: ["", "fma,ir", "f16,ir", "fma,f16,ir"] + cache: + paths: + - .cache rust-latest-release: stage: build @@ -30,6 +37,9 @@ rust-latest-release: "full_tests,fma,f16", "full_tests,f16", ] + cache: + paths: + - .cache rust-nightly: stage: build @@ -40,3 +50,6 @@ rust-nightly: parallel: matrix: - FEATURES: ["stdsimd,fma,ir", "stdsimd,ir"] + cache: + paths: + - .cache