-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (34 loc) · 1.37 KB
/
code_quality.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
name: Code quality check
on: [pull_request]
env:
OUTPUT: Empty
jobs:
code-quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup init_script
shell: bash
run: |
echo "#!/bin/bash
root_dir=\${1}
build_dir=\${2}
pip install conan --break-system-packages
conan profile detect
conan install \$root_dir --output-folder=build --build=missing --settings=build_type=Release -c tools.system.package_manager:mode=install
wget https://sdk.lunarg.com/sdk/download/1.3.216.0/linux/vulkansdk-linux-x86_64-1.3.216.0.tar.gz
mkdir vulkan
tar xf vulkansdk-linux-x86_64-1.3.216.0.tar.gz -C \$root_dir/vulkan
source \$root_dir/vulkan/1.3.216.0/setup-env.sh" > init_script.sh
- name: Run static analysis
uses: JacobDomagala/StaticAnalysis@master
with:
cmake_args: -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
exclude_dir: vulkan
init_script: init_script.sh
apt_pckgs: xorg-dev python3-pip
verbose: true
clang_tidy_args: |
-extra-arg=-std=c++20
cppcheck_args: |
--enable=all --suppress=missingIncludeSystem --suppress=functionStatic --suppress=unusedFunction --inline-suppr --inconclusive --check-level=exhaustive