Page MenuHomePhorge

D199.1732454688.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D199.1732454688.diff

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -58,6 +58,12 @@
rules: *build-rules
# Use ccache, see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/240/diffs
before_script:
+ # Prevent removing of downloaded archives, because we are caching it
+ # https://gitlab.com/gitlab-org/gitlab-runner/-/issues/991#note_126864314
+ - rm -f /etc/apt/apt.conf.d/docker-clean || true
+ - echo "dir::cache::archives $CI_PROJECT_DIR/apt-cache/archives; dir::state::lists $CI_PROJECT_DIR/apt-cache/lists;" > /etc/apt/apt.conf.d/gitlab-cache
+ - mkdir -pv "$CI_PROJECT_DIR/apt-cache/archives/partial" "$CI_PROJECT_DIR/apt-cache/lists/partial"
+ - find "$CI_PROJECT_DIR/apt-cache/" || true
- apt-get -y update
- DEBIAN_FRONTEND=noninteractive apt-get -y install ccache
- export CCACHE_COMPILERCHECK=content
@@ -67,12 +73,18 @@
- ccache --zero-stats || true
- ccache --show-stats || true
after_script:
+ - DEBIAN_FRONTEND=noninteractive apt-get -y autoclean
+ - find "$CI_PROJECT_DIR/apt-cache/"
- export CCACHE_DIR="$CI_PROJECT_DIR/ccache"
- ccache --show-stats
cache:
- key: $CI_JOB_NAME
- paths:
- - ccache/
+ - key: $CI_JOB_NAME
+ paths:
+ - ccache/
+ # This can be shared between jobs because we install the same set of packages regardless of the type of the build
+ - key: apt-archive-cache
+ paths:
+ - apt-cache/
.build-debug:
extends: .build

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 5:24 AM (8 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39622
Default Alt Text
D199.1732454688.diff (1 KB)

Event Timeline