-
Notifications
You must be signed in to change notification settings - Fork 4
104 lines (88 loc) · 2.93 KB
/
build.yml
File metadata and controls
104 lines (88 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Build
on:
push:
branches: ["**"]
pull_request:
jobs:
# ── Arch Linux (primary target distribution) ──────────────────────────────
build-arch:
name: Full build — Arch Linux
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: Install git (needed for checkout action inside container)
run: pacman -Sy --noconfirm git
- uses: actions/checkout@v4
- name: Checkout submodules
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git submodule update --init --force --recursive
- name: Install build dependencies
run: |
pacman -Su --noconfirm
pacman -S --noconfirm \
base-devel \
cmake \
ninja \
extra-cmake-modules \
libplasma \
qt6-declarative \
qt6-websockets \
qt6-webchannel \
vulkan-headers \
mpv \
lz4
- name: Configure
run: |
cmake -B build -S . \
-DCMAKE_BUILD_TYPE=Release \
-G Ninja
- name: Build
run: cmake --build build -j$(nproc)
# ── Fedora (secondary target distribution) ───────────────────────────────
build-fedora:
name: Full build — Fedora
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: Install git
run: dnf install -y git
- uses: actions/checkout@v4
- name: Checkout submodules
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git submodule update --init --force --recursive
- name: Enable RPM Fusion (needed for mpv)
run: |
dnf install -y \
"https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm" \
"https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm"
dnf swap -y ffmpeg-free ffmpeg --allowerasing
dnf install -y ffmpeg-devel --allowerasing
- name: Install build dependencies
run: |
dnf install -y \
cmake \
ninja-build \
extra-cmake-modules \
vulkan-headers \
plasma-workspace-devel \
kf6-plasma-devel \
kf6-kcoreaddons-devel \
kf6-kpackage-devel \
lz4-devel \
mpv-libs-devel \
qt6-qtbase-private-devel \
libplasma-devel \
qt6-qtwebchannel-devel \
qt6-qtwebsockets-devel \
qt6-qtdeclarative-devel
- name: Configure
run: |
cmake -B build -S . \
-DCMAKE_BUILD_TYPE=Release \
-G Ninja
- name: Build
run: cmake --build build -j$(nproc)