From 4f8a0a29f17554c6cea6d781708659f1ec61afcc Mon Sep 17 00:00:00 2001 From: Inoki Date: Mon, 26 Jan 2026 11:34:32 +0100 Subject: [PATCH 1/6] Add CI --- .github/workflows/ci.yml | 104 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a20a97a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,104 @@ +# SPDX-FileCopyrightText: 2026 +# SPDX-License-Identifier: GPL-2.0-or-later + +name: CI + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + fedora: + runs-on: ubuntu-latest + container: + image: fedora:latest + + steps: + - name: Install dependencies + run: | + dnf install -y \ + cmake \ + extra-cmake-modules \ + qt6-qtbase-devel \ + qt6-qtdeclarative-devel \ + kf6-kcoreaddons-devel \ + kf6-ki18n-devel \ + kf6-kcmutils-devel \ + kf6-kauth-devel \ + qt6-qttools \ + gcc-c++ \ + efivar-libs \ + git + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Configure CMake + run: | + mkdir build + cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Debug \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTING=ON + + - name: Build + run: | + cd build + make -j$(nproc) + + - name: Install + run: | + cd build + make install DESTDIR=$PWD/install + + arch-linux: + runs-on: ubuntu-latest + container: + image: archlinux:latest + + steps: + - name: Install dependencies + run: | + # Update package databases + pacman -Sy + # Install base development tools + pacman --noconfirm -S base-devel + # Install required dependencies + pacman --noconfirm -S \ + cmake \ + extra-cmake-modules \ + qt6-base \ + qt6-declarative \ + qt6-tools \ + kf6-kcoreaddons \ + kf6-ki18n \ + kf6-kcmutils \ + kf6-kauth \ + gcc \ + efivar \ + git + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Configure CMake + run: | + mkdir build + cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Debug \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTING=ON + + - name: Build + run: | + cd build + make -j$(nproc) + + - name: Install + run: | + cd build + make install DESTDIR=$PWD/install From a77565e1a790eec1de2baaa8254234fecee23f9d Mon Sep 17 00:00:00 2001 From: Inoki Date: Mon, 26 Jan 2026 12:31:03 +0100 Subject: [PATCH 2/6] Try to fix CI --- .github/workflows/ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a20a97a..5a3fc22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,9 +27,9 @@ jobs: kf6-ki18n-devel \ kf6-kcmutils-devel \ kf6-kauth-devel \ - qt6-qttools \ + qt6-qttools-devel \ gcc-c++ \ - efivar-libs \ + efivar-devel \ git - name: Checkout code @@ -62,12 +62,11 @@ jobs: steps: - name: Install dependencies run: | - # Update package databases - pacman -Sy - # Install base development tools - pacman --noconfirm -S base-devel + # Update system and install dependencies in one go + pacman --noconfirm -Syu # Install required dependencies - pacman --noconfirm -S \ + pacman --noconfirm -S --needed \ + base-devel \ cmake \ extra-cmake-modules \ qt6-base \ @@ -77,7 +76,6 @@ jobs: kf6-ki18n \ kf6-kcmutils \ kf6-kauth \ - gcc \ efivar \ git From 84534c7905bc2002d2c0b1c5493b6b300473922c Mon Sep 17 00:00:00 2001 From: Inoki Date: Mon, 26 Jan 2026 13:24:46 +0100 Subject: [PATCH 3/6] Fix dependency issue --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a3fc22..f3d1163 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,7 @@ jobs: extra-cmake-modules \ qt6-qtbase-devel \ qt6-qtdeclarative-devel \ + qt6-qtsvg-devel \ kf6-kcoreaddons-devel \ kf6-ki18n-devel \ kf6-kcmutils-devel \ @@ -72,8 +73,8 @@ jobs: qt6-base \ qt6-declarative \ qt6-tools \ - kf6-kcoreaddons \ - kf6-ki18n \ + kf6-coreaddons \ + kf6-i18n \ kf6-kcmutils \ kf6-kauth \ efivar \ From b4a0170fb563a79e094291768c2006accb55af92 Mon Sep 17 00:00:00 2001 From: Inoki Date: Mon, 26 Jan 2026 13:38:43 +0100 Subject: [PATCH 4/6] Add submodule and fix deps --- .github/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3d1163..617d68b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,8 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + with: + submodules: recursive - name: Configure CMake run: | @@ -73,15 +75,17 @@ jobs: qt6-base \ qt6-declarative \ qt6-tools \ - kf6-coreaddons \ - kf6-i18n \ - kf6-kcmutils \ - kf6-kauth \ + kcoreaddons \ + ki18n \ + kcmutils \ + kauth \ efivar \ git - name: Checkout code uses: actions/checkout@v4 + with: + submodules: recursive - name: Configure CMake run: | From 804e820195f096bfc3bc4671d562093abde96aef Mon Sep 17 00:00:00 2001 From: Inoki Date: Mon, 26 Jan 2026 13:48:49 +0100 Subject: [PATCH 5/6] Update submodule --- third_party/qefivar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/qefivar b/third_party/qefivar index 0830b78..0bf2529 160000 --- a/third_party/qefivar +++ b/third_party/qefivar @@ -1 +1 @@ -Subproject commit 0830b787690e5416d9d63bd858b66b90687b3cdb +Subproject commit 0bf2529c717486f036442c578785ac77c526deee From f7db6f63604ec337fa458e8c3f112cf00d6525c2 Mon Sep 17 00:00:00 2001 From: Inoki Date: Mon, 26 Jan 2026 13:52:27 +0100 Subject: [PATCH 6/6] Use better name --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 617d68b..30cc8ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,12 +5,13 @@ name: CI on: push: - branches: [ main, master ] + branches: [ main ] pull_request: - branches: [ main, master ] + branches: [ main ] jobs: fedora: + name: Build on Fedora runs-on: ubuntu-latest container: image: fedora:latest @@ -58,6 +59,7 @@ jobs: make install DESTDIR=$PWD/install arch-linux: + name: Build on Arch Linux runs-on: ubuntu-latest container: image: archlinux:latest