-
-
Notifications
You must be signed in to change notification settings - Fork 1
95 lines (73 loc) · 2.6 KB
/
cmake.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
name: Linux Build
on: [push]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
VSCP_ROOT: ${{github.workspace}}/vscp
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
# https://github.com/marketplace/actions/install-qt
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: 6.8.0
host: 'linux'
target: 'desktop'
arch: 'linux_gcc_64'
modules: 'qtcharts qtconnectivity qtserialbus qtserialport qtwebsockets'
# https://github.com/actions/checkout
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Checkout vscp repo
uses: actions/checkout@v4
with:
repository: grodansparadis/vscp
path: ${{github.workspace}}/vscp
ref: development
submodules: recursive
- name: Create environment variable for VSCP_ROOT and Qt6_DIR
run: |
export VSCP_ROOT=${{github.workspace}}/vscp
echo echo ${{env.VSCP_ROOT}}
- name: Checkout eclipse paho repo
uses: actions/checkout@v4
with:
repository: eclipse/paho.mqtt.c
path: paho
- name: Update before installing packages
run: sudo apt-get update
- name: Install libmosquitto-dev manually
run: sudo apt-get install libmosquitto-dev
- name: Install libexpat-dev manually
run: sudo apt-get install libexpat-dev
- name: Install libssl-dev manually
run: sudo apt-get install libssl-dev
- name: Install libcurl4-openssl-dev manually
run: sudo apt install libcurl4-openssl-dev
- name: Install libwebsockets-dev
run: sudo apt install libwebsockets-dev
- name: Install FUSE manually
run: sudo apt install libfuse2
- name: Install sqlite3
run: sudo apt install libsqlite3-dev
# - name: Install paho manually
# run: cd paho && mkdir build && cd build && sudo cmake -DPAHO_WITH_SSL=true .. && sudo make install
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
- name: Create Build Environment
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DVSCP_ROOT=${{github.workspace}}/vscp2/ -DVSCP_PATH=${{github.workspace}}/vscp/ ..
- name: Build vscp-works-qt
working-directory: ${{github.workspace}}/build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: |
make -j$(nproc)
make install DESTDIR=AppDir