forked from web-eid/web-eid-app
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.5 KB
/
cmake-linux-ubuntu.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
name: CMake (Ubuntu Linux)
on: [push, pull_request]
env:
BUILD_TYPE: RelWithDebInfo
BUILD_NUMBER: ${{github.run_number}}
QT_QPA_PLATFORM: offscreen
DEBIAN_FRONTEND: noninteractive
DEBFULLNAME: GitHub build
DEBEMAIL: [email protected]
CMAKE_BUILD_PARALLEL_LEVEL: 3
jobs:
build:
runs-on: ubuntu-24.04${{ matrix.arch == 'arm64' && '-arm' || '' }}
container: ubuntu:${{matrix.container}}
strategy:
matrix:
container: ['22.04', '24.04', '20.10']
arch: ['amd64', 'arm64']
steps:
- name: Install dependencies
run: apt update -qq && apt install --no-install-recommends -y git lsb-release fakeroot build-essential devscripts debhelper lintian pkg-config cmake libpcsclite-dev libssl-dev libgtest-dev libgl-dev libqt6svg6-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -B build -S .
- name: Build
run: |
cmake --build build --config $BUILD_TYPE --target installer
# Debian creates artifacts outside of project dir, copy them back to make them available in the build artifacts
mv ../web-eid*.* build/
- name: Test package
run: lintian build/*.deb
- uses: actions/upload-artifact@v4
with:
name: web-eid-app-ubuntu-build-ubuntu${{matrix.container}}-${{ matrix.arch }}-${{github.run_number}}
path: build/*.*deb