Skip to content

Commit 0a3d369

Browse files
authored
CI: get rid of snap and speed up CI (#13938)
Signed-off-by: Philip H <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 28db30d commit 0a3d369

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ jobs:
9090
- run: sudo dpkg --add-architecture i386
9191
if: matrix.architecture == 'i386'
9292

93+
- name: Uninstall snap
94+
run: |
95+
sudo bash ci/remove_snap.sh
96+
9397
- name: Install packages
9498
run: |
9599
PKGS=( \

Filelist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ SRC_ALL = \
2020
ci/config.mk*.sed \
2121
ci/if_ver*.vim \
2222
ci/setup-xvfb.sh \
23+
ci/remove_snap.sh \
2324
src/Make_all.mak \
2425
src/README.md \
2526
src/alloc.c \

ci/remove_snap.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env sh
2+
pushd /etc/apt/preferences.d/
3+
cat > nosnap.pref <<EOF
4+
# To prevent repository packages from triggering the installation of snap,
5+
# this file forbids snapd from being installed by APT.
6+
7+
Package: snapd
8+
Pin: release a=*
9+
Pin-Priority: -10
10+
EOF
11+
popd
12+
snap remove --purge $(snap list | awk '!/^Name|^core/ {print $1}')
13+
apt-get purge -y snapd

0 commit comments

Comments
 (0)