From f77866c0d985268be0dd369da61608f0f7d58ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Be=C3=9Fler?= Date: Mon, 9 Sep 2024 16:06:25 +0200 Subject: [PATCH 1/4] Update main.yml --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c56b1c6d6..78051efe2f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,6 +37,33 @@ jobs: with: comment_title: Compilation compile_result_file: build/make-output.txt + - name: setup init_script + shell: bash + run: | + 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}\" + + add-apt-repository ppa:oibaf/graphics-drivers + apt update && apt upgrade + apt install -y libvulkan1 mesa-vulkan-drivers vulkan-utils" > 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 From c87fed626b0d790112c0af7fdc3abfbf89c23b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Be=C3=9Fler?= Date: Mon, 9 Sep 2024 16:24:32 +0200 Subject: [PATCH 2/4] Update main.yml --- .github/workflows/main.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78051efe2f..8fc0d6d9f5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,15 +40,14 @@ jobs: - name: setup init_script shell: bash run: | + add-apt-repository ppa:oibaf/graphics-drivers + sudo apt-get install -y -qq libvulkan1 mesa-vulkan-drivers vulkan-utils + 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}\" - - add-apt-repository ppa:oibaf/graphics-drivers - apt update && apt upgrade - apt install -y libvulkan1 mesa-vulkan-drivers vulkan-utils" > init_script.sh + 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: From 52e0ed9c9d6735ee3e8ecefb4e7309e074734611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Be=C3=9Fler?= Date: Mon, 9 Sep 2024 16:38:01 +0200 Subject: [PATCH 3/4] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8fc0d6d9f5..6dad690865 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,7 +40,7 @@ jobs: - name: setup init_script shell: bash run: | - add-apt-repository ppa:oibaf/graphics-drivers + sudo add-apt-repository ppa:oibaf/graphics-drivers sudo apt-get install -y -qq libvulkan1 mesa-vulkan-drivers vulkan-utils echo "#!/bin/bash From edce22647070f98a456808d21d3152186d423bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Be=C3=9Fler?= Date: Mon, 9 Sep 2024 16:50:50 +0200 Subject: [PATCH 4/4] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6dad690865..5bb8da1901 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,7 +41,7 @@ jobs: shell: bash run: | sudo add-apt-repository ppa:oibaf/graphics-drivers - sudo apt-get install -y -qq libvulkan1 mesa-vulkan-drivers vulkan-utils + sudo apt-get install -y -qq libvulkan1 mesa-vulkan-drivers vulkan-tools echo "#!/bin/bash # Input args provided by StaticAnalysis action