diff --git a/.gitea/workflows/ci-image.yml b/.gitea/workflows/ci-image.yml index 5059ffd..cf2f52c 100644 --- a/.gitea/workflows/ci-image.yml +++ b/.gitea/workflows/ci-image.yml @@ -2,7 +2,7 @@ name: Rebuild CI Image on: schedule: - - cron: '0 6 * * 0' + - cron: '0 6 * * 1' workflow_dispatch: jobs: diff --git a/Plugins/ZShell/CMakeLists.txt b/Plugins/ZShell/CMakeLists.txt index 32c4675..2457613 100644 --- a/Plugins/ZShell/CMakeLists.txt +++ b/Plugins/ZShell/CMakeLists.txt @@ -9,7 +9,7 @@ pkg_check_modules(Cava IMPORTED_TARGET libcava QUIET) pkg_check_modules(GLIB REQUIRED glib-2.0 gobject-2.0 gio-2.0) if(NOT Cava_FOUND) - pkg_check_modules(Cava IMPORTED_TARGET cava QUIET) + pkg_check_modules(Cava IMPORTED_TARGET cava REQUIRED) endif() if(NOT TARGET Sensors::Sensors) diff --git a/ci/Dockerfile b/ci/Dockerfile index 0e49d21..dd94cce 100644 --- a/ci/Dockerfile +++ b/ci/Dockerfile @@ -25,5 +25,19 @@ RUN pacman -S --noconfirm \ libqalculate \ pipewire \ aubio \ + cava \ lm_sensors \ glib2 + +# AUR: libcava (provides development headers for cava) +RUN pacman -S --needed --noconfirm sudo && \ + useradd -m builder && \ + echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \ + su builder -c " \ + git clone https://aur.archlinux.org/libcava.git /tmp/libcava && \ + cd /tmp/libcava && \ + makepkg -si --noconfirm \ + " && \ + rm -rf /tmp/libcava && \ + userdel -r builder && \ + sed -i '/^builder/d' /etc/sudoers