-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
87 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Build KRunner Plugins | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- github_actions | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- name: ubuntu | ||
image: invent-registry.kde.org/neon/docker-images/plasma:user | ||
- name: opensuse | ||
image: opensuse/tumbleweed | ||
- name: fedora | ||
image: fedora | ||
plasma_version: [plasma5, plasma6] | ||
|
||
runs-on: ubuntu-latest | ||
container: ${{ matrix.os.image }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies (Ubuntu) | ||
if: matrix.os.name == 'ubuntu' | ||
run: | | ||
apt update | ||
if [ "${{ matrix.plasma_version }}" == "plasma5" ]; then | ||
apt install -y git cmake extra-cmake-modules build-essential libkf5runner-dev qtdeclarative5-dev gettext libxdo-dev libkf5kcmutils-dev libkf5dbusaddons-bin | ||
else | ||
apt install -y git cmake extra-cmake-modules build-essential libkf6runner-dev libxdo-dev libkf6kcmutils-dev kf6-kdbusaddons | ||
fi | ||
- name: Install dependencies (OpenSUSE) | ||
if: matrix.os.name == 'opensuse' | ||
run: | | ||
zypper refresh | ||
if [ "${{ matrix.plasma_version }}" == "plasma5" ]; then | ||
zypper install -y git cmake extra-cmake-modules ki18n-devel krunner-devel kconfigwidgets-devel kcmutils-devel gettext-tools xdotool-devel kdbusaddons-tools | ||
else | ||
zypper install -y git cmake kf6-extra-cmake-modules kf6-ki18n-devel kf6-krunner-devel gettext-tools xdotool-devel kf6-kconfigwidgets-devel kf6-kcmutils-devel kf6-kdbusaddons-tools | ||
fi | ||
- name: Install dependencies (Fedora) | ||
if: matrix.os.name == 'fedora' | ||
run: | | ||
dnf install -y git cmake extra-cmake-modules | ||
if [ "${{ matrix.plasma_version }}" == "plasma5" ]; then | ||
dnf install -y kf5-ki18n-devel kf5-krunner-devel gettext xdotool kf5-kcmutils-devel | ||
else | ||
dnf install -y kf6-ki18n-devel kf6-krunner-devel kf6-kcmutils-devel gettext xdotool | ||
fi | ||
- name: Create build directory | ||
run: | | ||
mkdir -p build | ||
cd build | ||
- name: Build with CMake | ||
run: | | ||
cd build | ||
if [[ "${{ matrix.plasma_version }}" == "plasma6" ]]; then | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_QT6=ON | ||
else | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_QT6=OFF | ||
fi | ||
cmake --build . | ||
- name: Run tests | ||
run: | | ||
cd build | ||
ctest --output-on-failure | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters