gitlab-ci: Use host-mapped directory for ccache

Same as done in Mesa.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
This commit is contained in:
Michel Dänzer 2019-12-23 10:41:32 +01:00 committed by Michel Dänzer
parent 4226c6d032
commit 9107a610de
1 changed files with 3 additions and 7 deletions

View File

@ -53,20 +53,16 @@ debian-testing:
when: on_failure
paths:
- build/test/piglit-results/
cache:
paths:
- ccache/
variables:
CCACHE_COMPILERCHECK: content
CCACHE_DIR: /cache/xserver/cache
LC_ALL: C.UTF-8
before_script:
- export CCACHE_BASEDIR="$PWD"
- export CCACHE_DIR="$PWD/ccache"
- export CCACHE_COMPILERCHECK=content
- export PATH="/usr/lib/ccache:$PATH"
- ccache --zero-stats
- ccache --show-stats
after_script:
- CCACHE_DIR="$PWD/ccache" ccache --show-stats
- ccache --show-stats
autotools-build-and-test:
extends: .common-build-and-test