gitlab-ci: Set arm job CCACHE_DIR properly
authorMichel Dänzer <mdaenzer@redhat.com>
Mon, 4 Nov 2019 11:30:12 +0000 (12:30 +0100)
committerMichel Dänzer <michel@daenzer.net>
Tue, 5 Nov 2019 08:27:32 +0000 (09:27 +0100)
commitd80dece0653e6118993f868bdb442592f3a3d584
tree12d0fc2999bce7fab1783bc25beafbeec6b3bec5
parent337f58438e6ac9dc66d3df25eabd8b89c883ad90
gitlab-ci: Set arm job CCACHE_DIR properly

$PWD doesn't work for variables:, it ended up as "/ccache", always
starting with an empty cache.

v2:
* Use relative path and realpath
v3:
* Use $CI_PROJECT_DIR (Eric Anholt)
* Clear ccache stats in before_script if the cache is in $CI_PROJECT_DIR

Fixes: c9df92bf795a "ci: Switch over to an autoscaling GKE cluster for
                     builds."
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
.gitlab-ci.yml