[#120] Update CI to work with conan 2.0 #348
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code quality check | |
on: [pull_request] | |
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==1.59.0 | |
conan install \$root_dir --install-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 | |
tar xf vulkansdk-linux-x86_64-1.3.216.0.tar.gz -C \$root_dir/lib | |
source \$root_dir/lib/1.3.216.0/setup-env.sh" > init_script.sh | |
- name: Run static analysis | |
uses: JacobDomagala/StaticAnalysis@master | |
with: | |
exclude_dir: lib | |
init_script: init_script.sh | |
apt_pckgs: xorg-dev python3-pip | |
report_pr_changes_only: false | |
verbose: true | |
cppcheck_args: | | |
--enable=all --suppress=functionStatic --suppress=unusedFunction --inline-suppr --inconclusive |