-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (36 loc) · 1.16 KB
/
build.yml
File metadata and controls
42 lines (36 loc) · 1.16 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
name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test-production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Apply cpplint
run: |
pip install cpplint
find ./ -iname *.hpp -o -iname *.cpp | xargs cpplint
- name: Apply clang-format
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends clang-format
find ./ -iname *.hpp -o -iname *.cpp | xargs clang-format -n --verbose --Werror
- name: Setup environment
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends software-properties-common build-essential cmake git
chmod +x scripts/install_dependencies.bash && bash scripts/install_dependencies.bash
- name: Run tests
run: |
make unittest
- name: Run apps
run: |
make apps -j`nproc`
./build/examples/test_pointcloud_clustering ./data/street_no_ground.pcd 0.7 3 0