[mutter/wip/3v1n0/ci-use-ccache: 3/3] remove-me: See ccache stats!



commit 4367f10351a4f1fbe1110894983b7ace570302b2
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Sat Aug 24 11:29:29 2019 +0300

    remove-me: See ccache stats!

 .gitlab-ci.yml | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ca2afa745..4e99cc586 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,15 +18,22 @@ cache:
   paths:
     - ccache/
 
+before_script:
+  - export CCACHE_BASEDIR="$PWD"
+  - export CCACHE_DIR="$PWD/ccache"
+  - ccache -s
+
 build-mutter:
   stage: build
-  variables:
-    CCACHE_BASEDIR: "$CI_PROJECT_DIR"
-    CCACHE_DIR: "$CI_PROJECT_DIR/ccache"
+  # variables:
+  #   CCACHE_BASEDIR: "$CI_PROJECT_DIR"
+  #   CCACHE_DIR: "$CI_PROJECT_DIR/ccache"
   script:
+    - ccache -s
     - meson . build -Dbuildtype=debugoptimized -Degl_device=true -Dwayland_eglstream=true --werror --prefix 
/usr
     - ninja -C build
     - ninja -C build install
+    - ccache -s
   artifacts:
     expire_in: 1 day
     paths:
@@ -41,9 +48,11 @@ build-without-native-backend:
     CCACHE_BASEDIR: "$CI_PROJECT_DIR"
     CCACHE_DIR: "$CI_PROJECT_DIR/ccache"
   script:
+    - ccache -s
     - meson . build -Dbuildtype=debugoptimized -Dnative_backend=false -Dudev=false --werror --prefix /usr
     - ninja -C build
     - ninja -C build install
+    - ccache -s
   artifacts:
     expire_in: 1 day
     paths:
@@ -87,6 +96,7 @@ can-build-gnome-shell:
     - .gitlab-ci/checkout-gnome-shell.sh
     - meson gnome-shell gnome-shell/build --prefix /usr -Dman=false
     - ninja -C gnome-shell/build install
+    - ccache -s
   only:
     - merge_requests
     - /^.*$/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]