Use Arch-based CI workflow

This commit is contained in:
Sebastian Palencsar
2026-05-20 11:30:47 +02:00
parent 51992dd437
commit 439af10ea8
2 changed files with 26 additions and 23 deletions

View File

@@ -8,33 +8,35 @@ on:
pull_request:
jobs:
linux-build:
arch-build:
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install dependencies
- name: Build in Arch Linux container
run: |
sudo apt-get update
sudo apt-get install -y \
cmake \
ninja-build \
pkg-config \
qt6-base-dev \
qt6-declarative-dev \
qt6-tools-dev-tools \
libkf6coreaddons-dev \
libkf6i18n-dev \
libkf6kirigami-dev \
phonon4qt6-dev
- name: Configure
run: cmake -S . -B build-ci -GNinja -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build-ci
- name: Lint QML
run: qmllint src/qml/Main.qml
docker run --rm \
-v "${GITHUB_WORKSPACE}:/workspace" \
-w /workspace \
archlinux:latest \
bash -lc '
set -euo pipefail
pacman -Syu --noconfirm
pacman -S --noconfirm --needed \
base-devel \
cmake \
extra-cmake-modules \
git \
qt6-base \
qt6-declarative \
qt6-tools \
kirigami \
kcoreaddons \
ki18n \
phonon-qt6
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j"$(nproc)"
"$(/usr/lib/qt6/bin/qtpaths6 --query QT_INSTALL_BINS)/qmllint" src/qml/Main.qml
'