generated from yuecideng/PrimitivesFittingLib
-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (39 loc) · 1.38 KB
/
style.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
name: Style Check
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize] # Rebuild on new pushes to PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
style-check:
runs-on: ubuntu-20.04 # No need for cmake repo
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Set up Python version
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
sudo apt install libeigen3-dev
pip3 install "pybind11[global]"
sudo apt-get install --yes cmake
sudo apt-get install --yes clang-7
sudo apt-get install --yes clang-format-10
python3 -m pip install -U yapf==0.30.0 nbformat
- name: Install pre-built Open3D c++ library
run: |
sudo wget https://github.com/isl-org/Open3D/releases/download/v0.15.1/open3d-devel-linux-x86_64-cxx11-abi-0.15.1.tar.xz -P /home
sudo tar -xf /home/open3d-devel-linux-x86_64-cxx11-abi-0.15.1.tar.xz -C /home
- name: Run style check
run: |
mkdir build
cd build
cmake .. -DOpen3D_DIR=/home/open3d-devel-linux-x86_64-cxx11-abi-0.15.1/lib/cmake/Open3D
make check-style