Page MenuHomePhorge

D199.1732727939.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D199.1732727939.diff

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -78,6 +78,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
@@ -87,12 +93,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
Wed, Nov 27, 9:18 AM (16 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41016
Default Alt Text
D199.1732727939.diff (1 KB)

Event Timeline