-
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 2.07 KB
/
builds.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
#--------------------------------------------------------------------------------
# Workflow configuration
#--------------------------------------------------------------------------------
name: "CI builds"
on:
push:
pull_request:
#--------------------------------------------------------------------------------
# Define application name & version
#--------------------------------------------------------------------------------
env:
VERSION: "0.10"
APPLICATION: "MiniVideoInfos"
QMAKE_PROJECT: "MiniVideoInfos.pro"
QT_VERSION: "6.5.2"
#--------------------------------------------------------------------------------
# Workflow jobs
#--------------------------------------------------------------------------------
jobs:
## GNU/Linux build ###########################################################
build-linux:
name: "Linux CI build"
runs-on: ubuntu-20.04
steps:
# Checkout the repository
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
# Install Qt
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{env.QT_VERSION}}
modules: qtimageformats qtpositioning qtlocation qtcharts qtshadertools qt5compat
# Install dependencies (from package manager)
- name: Install dependencies (from package manager)
run: |
sudo apt-get install libgl1-mesa-dev libxkbcommon-x11-dev libx11-xcb-dev libzstd-dev -y;
sudo apt-get install cmake ninja-build pkgconf libtool appstream -y;
# Build dependencies (from contribs script)
- name: Build dependencies (from contribs script)
run: |
cd contribs/
python3 contribs_builder.py --targets=linux --qt-directory ${{env.Qt6_DIR}}/../.. --qt-version ${{env.QT_VERSION}}
cd ..
# Build application
- name: Build application
run: |
qmake --version
qmake ${{env.QMAKE_PROJECT}} DEFINES+=USE_CONTRIBS CONFIG+=release PREFIX=/usr
make -j$(nproc)