From 2c6dae4feec71c0d959321eea5699aab992aa4d3 Mon Sep 17 00:00:00 2001 From: Jon Azpiazu <jon.azpiazu@tecnalia.com> Date: Wed, 18 May 2022 13:15:44 +0200 Subject: [PATCH] Add caching --- ci-templates/industrial-ci-templates.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ci-templates/industrial-ci-templates.yml b/ci-templates/industrial-ci-templates.yml index 947c290..921ad34 100644 --- a/ci-templates/industrial-ci-templates.yml +++ b/ci-templates/industrial-ci-templates.yml @@ -16,6 +16,11 @@ CMAKE_ARGS: -DCMAKE_CXX_FLAGS=-Wno-ignored-attributes -Wno-int-in-bool-context NOT_TEST_BUILD: "true" DOCKER_COMMIT: "${ARTIFACT_DOCKER_URL}/flexbotics-industrial-ci:${CI_COMMIT_SHORT_SHA}" + CCACHE_DIR: ${CI_PROJECT_DIR}/ccache + cache: + key: "${CI_JOB_NAME}" + paths: + - ccache industrial_ci_test_noetic: stage: .post @@ -34,6 +39,13 @@ industrial_ci_test_noetic: CMAKE_ARGS: -DCMAKE_CXX_FLAGS=-Wno-ignored-attributes -Wno-int-in-bool-context ROS_DISTRO: noetic UPSTREAM_WORKSPACE: .rosinstall + CCACHE_DIR: ${CI_PROJECT_DIR}/ccache + cache: + key: "${CI_JOB_NAME}" + paths: + - ccache + tags: + - docker .ddeploy: stage: deploy -- GitLab