add cache overrides so we hit our server

This commit is contained in:
Harald Sitter
2026-07-01 15:20:48 +02:00
committed by Aleix Pol i Gonzalez
parent 9d501871bb
commit 4aeb2fa2b6
2 changed files with 61 additions and 0 deletions

View File

@@ -93,6 +93,12 @@ rm --recursive --force etc-factory
git clone https://invent.kde.org/kde-linux/etc-factory
DESTDIR=$PWD/mkosi.extra make --directory=etc-factory install
if [ "${KDECI_BUILD:-}" = "TRUE" ]; then
# Set up cache overrides
mkdir --parents ~/.config
cp buildstream.conf ~/.config/buildstream.conf
fi
BST="bst"
rm -rf "$BUILDSTREAM_ROOTFS" "$BUILDSTREAM_BOOTFS" "$BUILDSTREAM_TOOLFS" "$BUILDSTREAM_EFI"
$BST build os/filesystem.bst

55
buildstream.conf Normal file
View File

@@ -0,0 +1,55 @@
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: none
# The user configuration for CI builds.
# https://docs.buildstream.build/master/using_config.html
projects:
freedesktop-sdk:
# - Augment fd-sdk with our own caches as well so that we can catch objects that have fallen out of the remote cache or aren't there yet.
# - As a fallback try to use our proxy cache for fd-sdk
artifacts:
override-project-caches: true
servers:
- url: https://buildstream.cache.kde-linux.haraldsitter.eu:11001
- url: https://freedesktop.buildstream.cache.kde-linux.haraldsitter.eu
source-caches:
override-project-caches: true
servers:
- url: https://buildstream.cache.kde-linux.haraldsitter.eu:11001
- url: https://freedesktop.buildstream.cache.kde-linux.haraldsitter.eu
gnome:
# - Augment gnome with our own caches as well so that we can catch objects that have fallen out of the remote cache or aren't there yet.
# - As a fallback try to use our proxy cache for gnome
artifacts:
override-project-caches: true
servers:
- url: https://buildstream.cache.kde-linux.haraldsitter.eu:11001
- url: https://gnome.buildstream.cache.kde-linux.haraldsitter.eu
source-caches:
override-project-caches: true
servers:
- url: https://buildstream.cache.kde-linux.haraldsitter.eu:11001
- url: https://gnome.buildstream.cache.kde-linux.haraldsitter.eu
kde:
artifacts:
override-project-caches: true
servers:
- url: https://buildstream.cache.kde-linux.haraldsitter.eu:11001
source-caches:
override-project-caches: true
servers:
- url: https://buildstream.cache.kde-linux.haraldsitter.eu:11001
kde-linux:
artifacts:
override-project-caches: true
servers:
- url: https://buildstream.cache.kde-linux.haraldsitter.eu:11001
source-caches:
override-project-caches: true
servers:
- url: https://buildstream.cache.kde-linux.haraldsitter.eu:11001
logging:
# Be more verbose when things fail. In particular the kde-builder issue may be a ways back in the log.
error-lines: 1000