-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (27 loc) · 1.05 KB
/
build.yaml
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
name: Build app
on: push
jobs:
buster:
name: Ubuntu build
runs-on: ubuntu-latest
container:
image: ubuntu:20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
apt-get update -qq
DEBIAN_FRONTEND="noninteractive" apt-get install -qq --force-yes git build-essential qt5-default qtbase5-dev qtdeclarative5-dev libqt5websockets5-dev qtquickcontrols2-5-dev qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick2 qml-module-qtquick-dialogs qml-module-qtquick-extras qml-module-qt-websockets qml-module-qtqml-models2 qml-module-qt-labs-qmlmodels qml-module-qt-labs-settings qml-module-qtquick-layouts
- name: Build
run: |
mkdir /build
cd /build
qmake "$GITHUB_WORKSPACE/src"
make -j4
- name: Test
shell: bash
run: |
cd /build
(sleep 5 ; pkill -SIGTERM PFA11) &
(./PFA11 -platform minimal || [[ $? == 143 ]] && exit 0 || exit $?)