-
Notifications
You must be signed in to change notification settings - Fork 17
54 lines (50 loc) · 1.79 KB
/
build_ubuntu_latest.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
name: build ubuntu latest
on:
pull_request:
branches:
- simulator
push:
branches:
- simulator
jobs:
build:
runs-on: ubuntu-latest
environment: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update package list
run: sudo apt-get update
- name: Install software-properties-common
run: sudo apt-get install software-properties-common
- name: Install clang compiler and tools
run: |
sudo apt-get -y install clang ccache cmake pkg-config curl wget
- name: Install dependencies
run: |
sudo apt-get install -y \
libc++-dev libomp-dev liblzma-dev libxml2-dev \
libqt5remoteobjects5-bin libqt5quickwidgets5 \
libqt5quickcontrols2-5 libqt5qmlmodels5 libqt5qml5 \
libqt5positioning5 libqt5dbus5 libqt5remoteobjects5-dev \
libqt5svg5-dev libqt5sensors5-dev \
qttools5-dev qttools5-dev-tools qtdeclarative5-dev \
qtquickcontrols2-5-dev qtmultimedia5-dev qtpositioning5-dev \
qml-module-qtquick2 qml-module-qtgraphicaleffects \
qml-module-qtquick-layouts qml-module-qtquick-controls2 \
qml-module-qt-labs-settings \
libreadline-dev
- name: Fetch submodules
run: git submodule init && git submodule update
- name: Configure build
run: |
cmake -B build \
-DBUILD_DEVICE_MOBILE=ON \
-DBUILD_SIMULATOR=ON -DBUILD_SIMULATOR_WITH_READLINE=ON \
-Wno-dev
- name: Build OSMIN
run: cmake --build build --target osmin
- name: Build SIMULATOR
run: cmake --build build --target simulator
- name: Install
run: sudo cmake --install build