-
Notifications
You must be signed in to change notification settings - Fork 19
38 lines (31 loc) · 1018 Bytes
/
cpp-lint.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
name: "C++ Lint"
on:
workflow_dispatch:
workflow_call:
jobs:
lint:
name: C++ linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Load dependencies versions
uses: cardinalby/export-env-action@v2
with:
envFile: '.github/workflows/deps/version.env'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-setuptools python3-wheel ninja-build g++ pkg-config libgtk-3-dev
python -m pip install meson
- name: Cache lib dependencies
uses: actions/cache@v4
with:
path: .github/workflows/deps/install_dir
key: ${{ env.OPENCV_GIT_TAG }}-${{ env.YAML_GIT_TAG }}-${{ env.ARGPARSE_GIT_TAG }}
fail-on-cache-miss: true
- name: Setup
run: |
meson setup build --prefer-static --pkg-config-path=$(find .github -name "pkgconfig")
- name: Lint
run: |
ninja clang-tidy -C build