-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 1.22 KB
/
build_linux.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
name: Linux
on:
push:
branches: [ master, '*-ci' ]
pull_request:
branches: [ master ]
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
build_linux:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: ["ubuntu-20.04", "ubuntu-22.04"]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Mosquitto library
run: sudo apt-get install mosquitto libmosquitto-dev
- name: Build Zserio C++ Pub/Sub Mosquitto
run: |
mkdir build
cd build
cmake ../examples/calculator -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../distr
cmake --build . --target install
- name: Test Zserio C++ Pub/Sub Mosquitto
run: |
cd build
./PowerOfTwoProvider &
./SquareRootOfProvider &
sleep 10
echo -e "p\\n100\\nq" | ./CalculatorClient | grep "square root of: 10"
echo -e "s\\n100\\nq" | ./CalculatorClient | grep "power of two: 10000"
kill $(jobs -p)
- name: Archive Zserio C++ Pub/Sub Mosquitto binary
uses: actions/upload-artifact@v4
with:
name: zserio-pubsub-mosquitto-cpp-${{matrix.os}}
path: distr/*