-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (50 loc) · 1.88 KB
/
lint.yaml
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
63
64
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Dependencies
uses: actions/cache@v3
with:
path: |
~/.conan2/p
key: ${{ runner.os }}-${{ hashFiles('**/conanfile.txt') }}
- name: Prepare Build Directory
run: mkdir build
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install Conan
run: pip install conan
- name: Detect Conan profile
run: conan profile detect --force
- name: Install Ubuntu Dependencies
run: sudo apt-get install -y libegl-dev libegl1-mesa-dev libva-dev libvdpau-dev libx11-xcb-dev libfontenc-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxfixes-dev libxi-dev libxinerama-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxres-dev libxss-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-dri3-dev libxcb-cursor-dev libxcb-util-dev
- name: Install Dependencies
run: conan install .. --output-folder=build --build=missing --settings compiler.cppstd=17 --settings build_type=Release
working-directory: build
- name: Lint
uses: cpp-linter/cpp-linter-action@v2
id: linter
with:
style: file
ignore: build
database: build
extra-args: -std=c++17 -Wall -Wextra
# - name: Fail Fast
# if: steps.linter.outputs.checks-failed > 0
# run: exit 1