diff --git a/.gitea/workflows/build-cpp.yml b/.gitea/workflows/build-cpp.yml index 8f7cc32..267d117 100644 --- a/.gitea/workflows/build-cpp.yml +++ b/.gitea/workflows/build-cpp.yml @@ -9,14 +9,11 @@ jobs: container: archlinux:latest steps: - - name: Install node & git + - name: Bootstrap pacman run: | pacman-key --init pacman-key --populate archlinux - pacman -Syu --noconfirm nodejs git - - - name: Checkout - uses: actions/checkout@v4 + pacman -Syu --noconfirm - name: Install build tools run: pacman -S --noconfirm \ @@ -24,16 +21,26 @@ jobs: cmake \ ninja \ pkgconf \ + sudo \ + git \ qt6-base \ qt6-declarative \ qt6-shadertools \ - qt6-tools \ pipewire \ libqalculate \ glib2 \ aubio \ cava + - name: Install libcava (AUR) + run: | + useradd -m builduser + passwd -d builduser + echo 'builduser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers + sudo -u builduser git clone https://aur.archlinux.org/libcava.git /tmp/libcava + cd /tmp/libcava + sudo -u builduser makepkg -si --noconfirm + - name: Configure run: cmake -S . -B build -G Ninja