Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main.yml #61

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,32 @@ jobs:
with:
comment_title: Compilation
compile_result_file: build/make-output.txt
- name: setup init_script
shell: bash
run: |
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt-get install -y -qq libvulkan1 mesa-vulkan-drivers vulkan-tools

echo "#!/bin/bash
# Input args provided by StaticAnalysis action
root_dir=\${1}
build_dir=\${2}
echo \"Hello from the init script! First arg=\${root_dir} second arg=\${build_dir}\"" > init_script.sh
- name: Run static analysis
uses: JacobDomagala/StaticAnalysis@master
with:
language: c++
# Exclude any issues found in ${Project_root_dir}/lib
exclude_dir: lib
use_cmake: true
# Additional apt packages that need to be installed before running Cmake
apt_pckgs: software-properties-common libglu1-mesa-dev freeglut3-dev mesa-common-dev
# Additional script that will be run (sourced) AFTER 'apt_pckgs' and before running Cmake
init_script: init_script.sh
# (Optional) clang-tidy args
clang_tidy_args: -checks='*,fuchsia-*,google-*,zircon-*,abseil-*,modernize-use-trailing-return-type'
# (Optional) cppcheck args
cppcheck_args: --enable=all --suppress=missingIncludeSystem
- name: Create debian package
if: ${{github.event_name == 'push' || github.event_name == 'release'}}
shell: bash
Expand Down
Loading