summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipe Laíns <lains@archlinux.org>2020-05-21 00:27:50 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2021-02-20 17:24:30 +0100
commit23f6dd16a7c8b6f81c229e2307838edd213d6149 (patch)
tree325b4f89903bff376bc2d582a08e1ef7b3179c38
parentdb02227cc467ac9b9abcd9ee28bb10b2ef62cf4b (diff)
downloadaur-23f6dd16a7c8b6f81c229e2307838edd213d6149.tar.gz
aur-23f6dd16a7c8b6f81c229e2307838edd213d6149.tar.xz
ci: add cache to gitlab ci
Signed-off-by: Filipe Laíns <lains@archlinux.org> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--.gitlab-ci.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d463b109..74784fce 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,13 @@
image: archlinux
+cache:
+ key: system-v1
+ paths:
+ # For some reason Gitlab CI only supports storing cache/artifacts in a path relative to the build directory
+ - .pkg-cache
+
before_script:
- - pacman -Syu --noconfirm --noprogressbar --needed
+ - pacman -Syu --noconfirm --noprogressbar --needed --cachedir .pkg-cache
base-devel git gpgme protobuf pyalpm python-mysql-connector
python-pygit2 python-srcinfo python-bleach python-markdown
python-sqlalchemy python-alembic python-pytest python-werkzeug