-
Notifications
You must be signed in to change notification settings - Fork 9
100 lines (88 loc) · 2.82 KB
/
package-ubuntu-20.04-qt5-full.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: "CodeQL + package Ubuntu 20.04 Qt5 full"
on:
# First try this out and run it only manually.
workflow_dispatch
# This is the default config:
#push:
# branches: [ main ]
#pull_request:
# # The branches below must be a subset of the branches above
# branches: [ main ]
jobs:
analyze:
name: Analyze
runs-on: ubuntu-20.04
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
- name: Install Dependencies
run: >
sudo apt-get update -y;
sudo apt-get install -y --no-install-recommends
cmake
zlib1g-dev
qtmultimedia5-dev
qttools5-dev
libqt5svg5-dev
libpoppler-qt5-dev
libmupdf-dev
libfreetype-dev
libharfbuzz-dev
libjpeg-dev
libopenjp2-7-dev
libjbig2dec0-dev
- name: Configure
run: >
cmake
-B build_dir
-DUBUNTU_VERSION=20.04
-DUSE_MUPDF=ON
-DUSE_POPPLER=ON
-DUSE_QTPDF=OFF
-DUSE_EXTERNAL_RENDERER=OFF
-DLINK_MUJS=OFF
-DLINK_GUMBO=OFF
-DUSE_TRANSLATIONS=ON
-DQT_VERSION_MAJOR=5
-DQT_VERSION_MINOR=12
-DGIT_VERSION=OFF
-DCMAKE_BUILD_TYPE='Release'
-DCPACK_GENERATOR='DEB;'
-DCMAKE_INSTALL_PREFIX='/usr'
-DCMAKE_INSTALL_SYSCONFDIR='/etc'
-DINSTALL_LICENSE=OFF
- name: Build
run: cmake --build build_dir
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
- name: Archive performance analysis report
uses: actions/upload-artifact@v4
with:
name: codeql-report.sarif
path: /home/runner/work/BeamerPresenter/results/cpp.sarif
- name: Package
run: cpack --config build_dir/CPackConfig.cmake
- name: Archive debian package
uses: actions/upload-artifact@v4
with:
name: beamerpresenter-full-qt5-x86_64.deb
path: /home/runner/work/BeamerPresenter/BeamerPresenter/beamerpresenter-full-qt5-x86_64.deb