qemu-cr16/.gitlab-ci.d
Daniel P. Berrangé 1d7fdee97b gitlab: purge msys pacman cache
For the Windows msys2 CI job we install many packages using pacman
and use the GitLab cache to preserve the pacman cache across CI
runs. While metadata still needs downloading, this avoids pacman
re-downloading packages from msys2 if they have not changed.

The problem is that pacman never automatically purges anything
from its package cache. Thus the GitLab cache is growing without
bound and packing/unpacking the cache is consuming an increasing
amount of time in the CI job.

If we run 'pacman -Sc' /after/ installing our desired package set,
it will purge any cached downloaded packages that are not matching
any installed package.

This will (currently) cap the pacman download cache at approx
256 MB.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20251010160545.144760-1-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2025-10-16 17:44:31 +02:00
..
cirrus libvirt-ci: bump to latest for vulkan-tools 2025-03-10 10:30:00 +00:00
custom-runners gitlab: move custom runners to Ubuntu 24.04 2025-10-07 07:33:39 +01:00
opensbi gitlab/opensbi: Move to docker:stable 2023-03-05 15:40:00 -08:00
base.yml gitlab-ci: Update QEMU_JOB_AVOCADO and QEMU_CI_AVOCADO_TESTING 2025-04-23 07:51:25 +02:00
buildtest-template.yml gitlab: prevent duplicated meson log artifacts in test jobs 2025-09-09 11:29:42 +02:00
buildtest.yml build-sys: cfi_debug and safe_stack are not compatible 2025-09-30 19:33:25 +04:00
check-dco.py gitlab: use --refetch in check-patch/check-dco jobs 2025-02-26 07:45:57 +01:00
check-patch.py gitlab: use --refetch in check-patch/check-dco jobs 2025-02-26 07:45:57 +01:00
check-units.py gitlab: add -n option to check-units script 2025-07-14 11:42:39 +01:00
cirrus.yml tests/freebsd: enable Rust 2025-09-30 19:33:25 +04:00
container-core.yml tests: Update our CI to use CentOS Stream 9 instead of 8 2024-04-25 07:03:04 +02:00
container-cross.yml gitlab: Enable CI for wasm build 2025-05-06 16:02:04 +02:00
container-template.yml gitlab: centralize the container tag name 2023-06-26 08:58:02 +02:00
containers.yml gitlab-ci: add Rust-enabled CI job 2024-10-11 12:32:18 +02:00
crossbuild-template.yml gitlab: include all junit XML files from meson 2025-09-09 11:29:42 +02:00
crossbuilds.yml gitlab-ci: fix 'needs' property type must be array 2025-09-30 19:33:25 +04:00
custom-runners.yml gitlab: move custom runners to Ubuntu 24.04 2025-10-07 07:33:39 +01:00
opensbi.yml gitlab-ci: add manual job to run Coverity 2024-03-08 19:11:00 +01:00
qemu-project.yml Add CI variable RUNNER_TAG 2023-05-24 12:26:40 -07:00
stages.yml gitlab: drop 'containers-layer2' stage 2022-07-29 09:48:01 +01:00
static_checks.yml gitlab-ci: fix 'needs' property type must be array 2025-09-30 19:33:25 +04:00
windows.yml gitlab: purge msys pacman cache 2025-10-16 17:44:31 +02:00