Mercurial > vim
changeset 34246:752da4c70ab4
CI: get rid of snap and speed up CI (#13938)
Commit: https://github.com/vim/vim/commit/0a3d36968737ad70bf234b6cc438230911b14f9c
Author: Philip H <47042125+pheiduck@users.noreply.github.com>
Date: Wed Jan 31 20:04:22 2024 +0100
CI: get rid of snap and speed up CI (https://github.com/vim/vim/issues/13938)
Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 31 Jan 2024 20:15:07 +0100 |
parents | 16a75ce45d44 |
children | 89749c7abd48 |
files | .github/workflows/ci.yml Filelist ci/remove_snap.sh |
diffstat | 3 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,6 +90,10 @@ jobs: - run: sudo dpkg --add-architecture i386 if: matrix.architecture == 'i386' + - name: Uninstall snap + run: | + sudo bash ci/remove_snap.sh + - name: Install packages run: | PKGS=( \
--- a/Filelist +++ b/Filelist @@ -20,6 +20,7 @@ SRC_ALL = \ ci/config.mk*.sed \ ci/if_ver*.vim \ ci/setup-xvfb.sh \ + ci/remove_snap.sh \ src/Make_all.mak \ src/README.md \ src/alloc.c \
new file mode 100644 --- /dev/null +++ b/ci/remove_snap.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env sh +pushd /etc/apt/preferences.d/ +cat > nosnap.pref <<EOF +# To prevent repository packages from triggering the installation of snap, +# this file forbids snapd from being installed by APT. + +Package: snapd +Pin: release a=* +Pin-Priority: -10 +EOF +popd +snap remove --purge $(snap list | awk '!/^Name|^core/ {print $1}') +apt-get purge -y snapd