[babl] gitlab-ci: Manage pacman cache
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] gitlab-ci: Manage pacman cache
- Date: Tue, 5 May 2020 01:15:49 +0000 (UTC)
commit 7cfad8dbc895889cf72e1fc3e742c199247555ae
Author: Jan Vesely <jano vesely gmail com>
Date: Wed Apr 29 01:08:15 2020 -0400
gitlab-ci: Manage pacman cache
Drop unused packages from download cache.
Signed-off-by: Jan Vesely <jano vesely gmail com>
.gitlab-ci.yml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 31fbf8804..6da021f86 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,12 +5,14 @@ cache:
.build:
stage: build
image: archlinux/base:latest
+ variables:
+ PACMAN_CACHE: $CI_PROJECT_DIR/_pacman_cache
artifacts:
when: always
paths:
- _build/meson-logs
before_script:
- - pacman -Syu --noconfirm --needed --cachedir `pwd`/_pacman_cache
+ - pacman -Syu --noconfirm --needed --cachedir $PACMAN_CACHE
base-devel
git
gobject-introspection
@@ -28,6 +30,10 @@ cache:
${EXTRA_OPTIONS}
- ninja -C _build
- ninja -C _build test
+ after_script:
+ # Remove all cached packages but the latest version
+ - pacman -S --noconfirm --cachedir $PACMAN_CACHE pacman-contrib
+ - paccache -r -k1 --cachedir $PACMAN_CACHE
latest-lcms:
extends: .build
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]