This repository was archived by the owner on Nov 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
62 lines (48 loc) · 1.39 KB
/
lint_and_test.yml
File metadata and controls
62 lines (48 loc) · 1.39 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Lint & Test
on:
workflow_call:
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-22.04
name: Build Check
steps:
- name: Clone Repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install PCL
run: sudo apt-get update && sudo apt-get install libpcl-dev
- name: Configure CMake project
run: cmake -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=install
- name: Build app
run: cmake --build build --config $BUILD_TYPE
- name: Install app
run: cmake --install build
- name: Test app
run: build/app
- name: Artifact (with permissions)
uses: actions/cache@v2
with:
path: ${{github.workspace}}/install
key: artifacts-${{ github.run_id }}-${{ github.run_number }}
lint:
needs: [build]
name: Formatting Check
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.5.0
with:
clang-format-version: "10"
check-path: "."
exclude-regex: "external"
test:
needs: [build]
name: Tests Check
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: echo "🍏 This job's status is ${{ job.status }}."