-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (38 loc) · 1.34 KB
/
cpp_build.yml
File metadata and controls
48 lines (38 loc) · 1.34 KB
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: CPP Build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testbranches: ['release','master']
steps:
- uses: actions/checkout@v2
- name: Apt update
run: sudo apt update
- name: Customize git
run: |
git submodule update --init --recursive
- name: Install prerequisites
run: |
sudo apt install cmake g++ libeigen3-dev dpkg-dev build-essential
- name: Build & install DQRobotics (${{ matrix.testbranches }})
run: |
git clone -b ${{ matrix.testbranches }} https://github.com/dqrobotics/cpp
cd cpp
dpkg-buildpackage --sanitize-env -us -uc -B -rfakeroot
cd ..
sudo apt install ./*.deb
- name: Build & install cpp-interface-json11
run: |
dpkg-buildpackage --sanitize-env -us -uc -B -rfakeroot
cd ..
sudo apt install ./*.deb
- name: Clone cpp-examples (${{ matrix.testbranches }})
run: git clone -b ${{ matrix.testbranches }} https://github.com/dqrobotics/cpp-examples.git
- name: Build and run example
run: |
cd cpp-examples
chmod +x .build_json11.sh
./.build_json11.sh