-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (43 loc) · 1.45 KB
/
cpp_build.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: CPP Build
on: [push, pull_request]
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 fakeroot
- name: Build & install DQRobotics (${{ matrix.testbranches }})
run: |
git clone -b ${{ matrix.testbranches }} https://github.com/dqrobotics/cpp
cd cpp
sh .github/scripts/ubuntu/install_prerequisites.sh
sh .github/scripts/ubuntu/build.sh
sh .github/scripts/ubuntu/install.sh
cd ..
- name: Build & install cpp-interface-vrep
run: |
git checkout
chmod +x debian/rules
fakeroot debian/rules clean
fakeroot debian/rules build
fakeroot debian/rules binary
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 examples
run: |
cd cpp-examples
chmod +x .build_vrep.sh
./.build_vrep.sh