summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2023-03-05 21:52:05 +0100
committerCorentin Noël <tintou@noel.tf>2023-03-06 16:21:47 +0100
commit3e607447faaae64c61bfbbea5bcf3a2a34ded3fe (patch)
tree7336d090021bc0253deef9d2ebb9beb77d050587
parentf9f699ec70842c46f01a4d214f4c8e5ed00ccd4f (diff)
downloadevolution-data-server-3e607447faaae64c61bfbbea5bcf3a2a34ded3fe.tar.gz
M!115 - ci: Use CCache and store the flatpak-builder cache
Allows to speed-up subsequent runs of the CI. Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/merge_requests/115
-rw-r--r--.gitlab-ci.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 36687530f..6094bc64d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,11 +12,19 @@ flatpak:
FLATPAK_MODULE: "evolution-data-server"
APP_ID: "org.gnome.evolution-data-server-nightly"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
+ before_script:
+ - export PATH="/usr/lib/ccache:$PATH"
+ - export CCACHE_BASEDIR="$PWD"
+ - export CCACHE_DIR="$PWD/ccache"
script:
- >
xvfb-run -a -s "-screen 0 1024x768x24"
- flatpak-builder --keep-build-dirs --user --disable-rofiles-fuse flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
+ flatpak-builder --keep-build-dirs --user --disable-rofiles-fuse flatpak_app --repo=repo --ccache ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH}
+ cache:
+ paths:
+ - ccache
+ - .flatpak-builder
artifacts:
name: "Flatpak artifacts"
expose_as: "Get Flatpak bundle here"