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

1
.gitignore vendored
View File

@@ -4,6 +4,7 @@ AGENTS.md
## Build directories ## Build directories
build/ build/
build-ci/ build-ci/
build-arch-ci/
cmake-build-*/ cmake-build-*/
## CMake artifacts ## CMake artifacts