diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 777a111f2b343aea53c2db19a2399d375fd37b87..bef5ed5a75a4d3c4504e5a10283e789bac24bd9b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,7 +17,7 @@ build-and-test:
     # Ccache configuration and introspection.
     - apt-get install ccache --yes
     - ccache --set-config=cache_dir="$CI_PROJECT_DIR/.ccache"
-    - ccache --max-size=20G
+    - ccache --max-size=5G
     - ccache --show-stats
 
     # Activate Axii.