]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
CI: get rid of snap and speed up CI (#13938)
authorPhilip H <47042125+pheiduck@users.noreply.github.com>
Wed, 31 Jan 2024 19:04:22 +0000 (20:04 +0100)
committerGitHub <noreply@github.com>
Wed, 31 Jan 2024 19:04:22 +0000 (20:04 +0100)
Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/workflows/ci.yml
Filelist
ci/remove_snap.sh [new file with mode: 0644]

index 726de4e51cf8535ee78ab63ccabfd9237b7c41fa..ebac88216bad8748b2e7553b7795691a81469404 100644 (file)
@@ -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=( \
index d4fbca342eee1534b2f66cb911accb49bb5e798e..a3b66f11d8dd6bc0f6f5c4d935def20e933664aa 100644 (file)
--- 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 \
diff --git a/ci/remove_snap.sh b/ci/remove_snap.sh
new file mode 100644 (file)
index 0000000..a812307
--- /dev/null
@@ -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