Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F110751
D199.1731643299.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D199.1731643299.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 14, 8:01 PM (11 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37483
Default Alt Text
D199.1731643299.diff (1 KB)
Attached To
Mode
D199: Cache apt files
Attached
Detach File
Event Timeline
Log In to Comment