]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1733: CI: cannot cache linux-modules-extra v9.0.1733
authorPhilip H <47042125+pheiduck@users.noreply.github.com>
Thu, 17 Aug 2023 21:45:08 +0000 (23:45 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 17 Aug 2023 21:45:08 +0000 (23:45 +0200)
Problem: CI: cannot cache linux-modules-extra
Solution: Enable caching and reduce failed downloads

closes: #12779

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>
.github/workflows/ci.yml
src/version.c

index e5715d3afe9f955b809de4e93e7dfd1d2a9e70df..12bab27cc7da9b3c7f7728c1917e718b246f8f64 100644 (file)
@@ -180,23 +180,20 @@ jobs:
           sudo usermod -a -G audio "${USER}"
           sudo bash ci/setup-xvfb.sh
 
-      - name: Check if linux-modules-extra is available
-        id: check-snd-dummy
-        if: (!(contains(matrix.extra, 'unittests') || contains(matrix.extra, 'vimtags')))
-        continue-on-error: true
-        run: |
-          sudo apt-get install -d -y linux-modules-extra-${{ env.LINUX_VERSION }}
-
       - name: Set up snd-dummy
-        if: steps.check-snd-dummy.outcome == 'success' && (!(contains(matrix.extra, 'unittests') || contains(matrix.extra, 'vimtags')))
+        if: (!(contains(matrix.extra, 'unittests') || contains(matrix.extra, 'vimtags')))
         env:
           DEST_DIR: ${{ env.TMPDIR }}/linux-modules-extra-${{ env.LINUX_VERSION }}
+        uses: tecolicom/actions-use-apt-tools@main
+        with:
+          tools: linux-modules-extra-${{ env.LINUX_VERSION }}
+          path: "${DEST_DIR}"
+
+      - name: modprobe snd-dummy
+        if: (!(contains(matrix.extra, 'unittests') || contains(matrix.extra, 'vimtags')))
         run: |
-          cd /lib/modules/${{ env.LINUX_VERSION }}
-          sudo dpkg -x /var/cache/apt/archives/linux-modules-extra-${{ env.LINUX_VERSION }}*.deb "${DEST_DIR}"
-          tar -cvC "${DEST_DIR}"/lib/modules/${{ env.LINUX_VERSION }} kernel/sound | sudo tar -x
           sudo depmod --verbose
-          sudo modprobe --verbose snd-dummy 
+          sudo modprobe --verbose snd-dummy
 
       - name: Check autoconf
         if: contains(matrix.extra, 'unittests')
index dd8491b6d25b2e7e734af1e0ed001cd4d71f35d2..539b3899abd675468d691ca58306b85e92e49e0c 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1733,
 /**/
     1732,
 /**/