-
Notifications
You must be signed in to change notification settings - Fork 28
79 lines (69 loc) · 1.83 KB
/
linux-build.yml
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
name: Build PageEdit on Linux
on:
push:
branches: [ master ]
tags-ignore:
- '**'
paths-ignore:
- 'docs/**'
- 'installer/win_installer_note.txt'
- 'ChangeLog.txt'
- 'COPYING.txt'
- 'version.xml'
- 'appveyor.yml'
- '.retired_travis.yml'
- '.retired_appveyor.yml'
- '**.md'
pull_request:
branches: [ master ]
tags-ignore:
- '**'
paths-ignore:
- 'docs/**'
- 'installer/win_installer_note.txt'
- 'ChangeLog.txt'
- 'COPYING.txt'
- 'version.xml'
- 'appveyor.yml'
- '.retired_travis.yml'
- '.retired_appveyor.yml'
- '**.md'
env:
BUILD_TYPE: Debug
jobs:
build:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Qt
id: cache-qt
uses: actions/cache@v4
with:
path: ${{runner.workspace}}/Qt
key: ${{ runner.os }}-qtdeps-${{ hashFiles('**/reset-lin-caches.txt') }}
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.6.2'
dir: ${{runner.workspace}}/Qt
modules: 'qtwebengine qtpositioning qt5compat qtpdf qtwebchannel'
setup-python: 'true'
cache: ${{ steps.cache-qt.outputs.cache-hit }}
- uses: lukka/get-cmake@latest
- name: Install dependencies
run: |
sudo apt install mesa-common-dev libglu1-mesa-dev
mkdir ${{runner.workspace}}/build
cmake --version
ninja --version
qmake -v
gcc --version
- name: Build PageEdit
working-directory: ${{runner.workspace}}/build
run: |
cmake $GITHUB_WORKSPACE \
-G "Ninja" \
-DCMAKE_PREFIX_PATH="{$QT_ROOT_DIR}/lib/cmake" \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
ninja -j$(getconf _NPROCESSORS_ONLN)