mirror of
https://github.com/spalencsar/bearwave.git
synced 2026-07-06 22:24:17 +02:00
Use Arch-based CI workflow
This commit is contained in:
46
.github/workflows/build.yml
vendored
46
.github/workflows/build.yml
vendored
@@ -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" \
|
||||||
|
-w /workspace \
|
||||||
|
archlinux:latest \
|
||||||
|
bash -lc '
|
||||||
|
set -euo pipefail
|
||||||
|
pacman -Syu --noconfirm
|
||||||
|
pacman -S --noconfirm --needed \
|
||||||
|
base-devel \
|
||||||
cmake \
|
cmake \
|
||||||
ninja-build \
|
extra-cmake-modules \
|
||||||
pkg-config \
|
git \
|
||||||
qt6-base-dev \
|
qt6-base \
|
||||||
qt6-declarative-dev \
|
qt6-declarative \
|
||||||
qt6-tools-dev-tools \
|
qt6-tools \
|
||||||
libkf6coreaddons-dev \
|
kirigami \
|
||||||
libkf6i18n-dev \
|
kcoreaddons \
|
||||||
libkf6kirigami-dev \
|
ki18n \
|
||||||
phonon4qt6-dev
|
phonon-qt6
|
||||||
|
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
|
||||||
- name: Configure
|
cmake --build build -j"$(nproc)"
|
||||||
run: cmake -S . -B build-ci -GNinja -DCMAKE_BUILD_TYPE=Release
|
"$(/usr/lib/qt6/bin/qtpaths6 --query QT_INSTALL_BINS)/qmllint" src/qml/Main.qml
|
||||||
|
'
|
||||||
- name: Build
|
|
||||||
run: cmake --build build-ci
|
|
||||||
|
|
||||||
- name: Lint QML
|
|
||||||
run: qmllint src/qml/Main.qml
|
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user