-
Notifications
You must be signed in to change notification settings - Fork 29
43 lines (41 loc) · 1.14 KB
/
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
name: ubuntu
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-18.04, ubuntu-20.04, ubuntu-22.04 ]
buildtype: [ Debug, Release ]
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update
- name: Install build deps
run: >
sudo apt-get install -y
libboost-program-options-dev
libboost-test-dev
libpoppler-qt5-dev
qtbase5-dev
qttools5-dev
qttools5-dev-tools
- name: create build/ dir
run: >
cmake -B build/
-DCMAKE_VERBOSE_MAKEFILE=ON
-DUsePrerenderedPDF=ON
-DCodeCoverage=ON
-DCMAKE_BUILD_TYPE=${{matrix.buildtype}}
.
- run: cmake --build build/
- name: run tests within xvfb
working-directory: build/
run: >
xvfb-run -a -s '-screen 0 1920x1080x24 -screen 1 1920x1200x24'
ctest --output-on-failure --timeout 60
- name: upload coverage
run: bash <(curl -s https://codecov.io/bash)