diff options
author | Philip H <47042125+pheiduck@users.noreply.github.com> | 2023-05-11 15:22:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-05-11 15:22:58 +0100 |
commit | e741f039cf46ccfbdaaa274618810787129d152b (patch) | |
tree | 11f6847f7c8f60428580727d457031389ad2ee48 /.github | |
parent | f9dc278946d52235a0025fd347bd9ff571258470 (diff) |
patch 9.0.1541: CI: sound dummy is disabledv9.0.1541
Problem: CI: sound dummy is disabled.
Solution: Make sound dummy work again. (closes #12380)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d50f8c1bc..207b7dd3fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -174,18 +174,21 @@ jobs: sudo usermod -a -G audio "${USER}" sudo bash ci/setup-xvfb.sh - # FIXME: Temporarily disabled because of build errors - # - name: Set up snd-dummy - # if: (!(contains(matrix.extra, 'unittests') || contains(matrix.extra, 'vimtags'))) - # env: - # DEST_DIR: ${{ env.TMPDIR }}/linux-modules-extra-${{ env.LINUX_VERSION }} - # run: | - # cd /lib/modules/${{ env.LINUX_VERSION }} - # sudo apt-get install -d -y linux-modules-extra-${{ env.LINUX_VERSION }} - # sudo dpkg -x /var/cache/apt/archives/linux-modules-extra-${{ env.LINUX_VERSION }}*.deb "${DEST_DIR}" - # tar -cC "${DEST_DIR}"/lib/modules/${{ env.LINUX_VERSION }} kernel/sound | sudo tar -x - # sudo depmod - # sudo modprobe snd-dummy + - name: Set up snd-dummy + if: (!(contains(matrix.extra, 'unittests') || contains(matrix.extra, 'vimtags'))) + env: + DEST_DIR: ${{ env.TMPDIR }}/linux-modules-extra-${{ env.LINUX_VERSION }} + run: | + cd /lib/modules/${{ env.LINUX_VERSION }} + if [ sudo apt-get install -d -y linux-modules-extra-${{ env.LINUX_VERSION }} 2>&1 | $(grep "Unable to locate package ") ]; then + echo "Download of " linux-modules-extra-${{ env.LINUX_VERSION }} "failed continue anyway" exit 0 + else + sudo apt-get install -d -y linux-modules-extra-${{ 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 + fi - name: Check autoconf if: contains(matrix.extra, 'unittests') |