Skip to content

Commit 09edaa6

Browse files
committed
ci: fix ci
I love ArchLinux, BTW.
1 parent 104c1a8 commit 09edaa6

File tree

1 file changed

+14
-56
lines changed

1 file changed

+14
-56
lines changed
Lines changed: 14 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Kate Text Highlight Plugin Build
22

3-
on:
3+
on:
44
push:
55
branches:
66
- master
@@ -32,76 +32,29 @@ jobs:
3232
# qt_modules: "qtcharts qtdatavis3d qtlottie qtnetworkauth qtpurchasing qtquick3d qtquicktimeline qtscript qtvirtualkeyboard qtwaylandcompositor qtwebengine qtwebglplugin",
3333
# ecm_branch: "kf5",
3434
# }
35-
- {
36-
qt_major_version: 6,
37-
qt_version: "6.7.0",
38-
arch: "linux_gcc_64",
39-
qt_modules: "qt3d qtcharts qtconnectivity qtdatavis3d qtgraphs qtgrpc qthttpserver qtimageformats qtlanguageserver qtlocation qtlottie qtmultimedia qtnetworkauth qtpdf qtpositioning qtquick3dphysics qtquickeffectmaker qtremoteobjects qtscxml qtsensors qtserialbus qtserialport qtspeech qtvirtualkeyboard qtwebchannel qtwebengine qtwebsockets qtwebview debug_info qt5compat qtquick3d qtquicktimeline qtshadertools qtwaylandcompositor",
40-
ecm_branch: "master",
41-
}
35+
- { qt_major_version: 6 }
4236

4337
runs-on: ubuntu-latest
38+
container:
39+
image: archlinux:base
40+
options: --user root --privileged
4441
env:
4542
QT_MAJOR_VERSION: ${{ matrix.config.qt_major_version }}
46-
QT_VERSION: ${{ matrix.config.qt_version }}
47-
QT_MODULES: ${{ matrix.config.qt_modules }}
48-
AQT_ARCH: ${{ matrix.config.arch }}
49-
ECM_BRANCH: ${{ matrix.config.ecm_branch }}
5043
steps:
5144
- name: Checkout Sources
5245
uses: actions/checkout@v4
46+
5347
- name: Install build dependencies
5448
run: |
55-
sudo sed -i 's/^#\s*deb-src/deb-src/' /etc/apt/sources.list # add src repos
56-
sudo apt-get update
57-
sudo apt-get install -y \
58-
build-essential \
59-
cmake \
60-
ninja-build \
61-
git \
62-
python3 pip \
63-
libzstd-dev # karchive
64-
pip install meson
49+
pacman -Syyu --noconfirm
50+
pacman -S git curl python base-devel wget cmake ninja kate extra-cmake-modules --noconfirm
6551
66-
- name: Install Qt
67-
uses: jurplel/install-qt-action@v4
68-
with:
69-
aqtversion: "==3.1.*"
70-
version: ${{ env.QT_VERSION }}
71-
host: "linux"
72-
target: "desktop"
73-
arch: ${{ env.AQT_ARCH }}
74-
modules: ${{ env.QT_MODULES }}
75-
- name: Build KDE Framework
76-
run: |
77-
mkdir build
78-
cd build
79-
git clone https://invent.kde.org/frameworks/extra-cmake-modules.git -b ${{ env.ECM_BRANCH }}
80-
cd extra-cmake-modules
81-
mkdir build && cd build && cmake .. && cmake --build . && sudo cmake --install .
82-
cd ../../
83-
git clone https://invent.kde.org/sdk/kdesrc-build.git
84-
cd kdesrc-build
85-
# env
86-
export PATH=$QT_ROOT_DIR:`pwd`:$PATH
87-
export QT_MAJOR_VERSION=${{ env.QT_MAJOR_VERSION }}
88-
export QTDIR=$QT_ROOT_DIR
89-
# solve dependencies
90-
sudo apt build-dep wayland kcodecs karchive kguiaddons kdoctools knotifications kwindowsystem polkit-qt-1 kjobwidgets solid kio kparts ktexteditor -y
91-
# build kf
92-
kdesrc-build --initial-setup
93-
kdesrc-build --metadata-only
94-
kdesrc-build --pretend
95-
# let build faster
96-
sed -i "s/num-cores [0-9]\+/num-cores $(nproc)/" ~/.config/kdesrc-buildrc
97-
kdesrc-build --no-stop-on-failure kate || echo "Kate Build Completed"
98-
cd ..
9952
- name: Build Plugin
10053
run: |
54+
mkdir build
10155
cd build
10256
cmake .. \
10357
-DQT_MAJOR_VERSION=${{ env.QT_MAJOR_VERSION }} \
104-
-DCMAKE_PREFIX_PATH="$HOME/kde/usr/lib/x86_64-linux-gnu/cmake/" \
10558
-DCMAKE_BUILD_TYPE=Release
10659
cmake --build .
10760
cd ..
@@ -118,3 +71,8 @@ jobs:
11871
file: build/bin/kf${{ env.QT_MAJOR_VERSION }}/ktexteditor/text-highlight-plugin.so
11972
tag: ${{ github.ref }}
12073
overwrite: true
74+
# - name: Setup tmate session
75+
# uses: mxschmitt/action-tmate@v3
76+
# if: ${{ failure() }}
77+
# with:
78+
# limit-access-to-actor: false

0 commit comments

Comments
 (0)