fix(ci): install the Qt6 build dependencies on the runner
version / print-version (push) Successful in 2s

makepkg runs with --nodeps, so the Qt6 development files declared as
dependencies are never pulled in and CMake fails to configure the build.
The dependencies are now installed once per runner, and skipped when they
are already present.
This commit is contained in:
BlackAngelTV committed 2026-11-27 07:43:33 +01:00
1 parent 42f13efed9
commit 6ebb946437
1 file changed
+20
+20
View File
@@ -30,6 +30,26 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install the build dependencies
# makepkg runs with --nodeps below, so depends/makedepends are never
# installed by pacman: the Qt6 headers the build needs must already be
# on the runner. Idempotent, so a warm runner costs nothing.
run: |
set -euo pipefail
missing=""
for package in qt6-base cmake gcc make fakeroot; do
pacman -Q "$package" > /dev/null 2>&1 || missing="$missing $package"
done
if [ -z "$missing" ]; then
echo "All the build dependencies are already installed."
exit 0
fi
if ! sudo -n pacman -S --needed --noconfirm $missing; then
echo "::error::could not install:$missing"
echo '::error::give the runner user passwordless sudo for pacman or preinstall these packages.'
exit 1
fi
- name: Read the version file
id: version
run: |