From 08073d04d33d87ef1762437f491e1d0cd6dc218a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onur=20=C3=9Clgen?= Date: Fri, 9 Feb 2024 18:20:49 +0000 Subject: [PATCH] Linter Test 5 --- .github/workflows/analysis.yml | 37 +++++++++++++++++++++------------- niftyreg_build_version.txt | 2 +- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 3db2d060..80ddb38a 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -6,6 +6,10 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Install dependencies + run: | + sudo apt update && sudo apt install cppcheck -y + # - name: Install CUDA Toolkit # uses: Jimver/cuda-toolkit@v0.2.14 # with: @@ -13,22 +17,27 @@ jobs: # use-github-cache: false # use-local-cache: false + - name: Configure NiftyReg + run: | + mkdir build && cd build + cmake -DCMAKE_C_COMPILER=gcc \ + -DCMAKE_CXX_COMPILER=g++ \ + -DCMAKE_BUILD_TYPE=Debug \ + -DBUILD_ALL_DEP=ON \ + -DCHECK_GPU=OFF \ + -DUSE_CUDA=OFF \ + -DUSE_OPENCL=OFF \ + -DUSE_SSE=ON \ + -DUSE_OPENMP=ON \ + -DBUILD_TESTING=OFF \ + -DWITH_COVERAGE=OFF \ + -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ + .. + - name: Code Analysis uses: JacobDomagala/StaticAnalysis@master with: comment_title: Code Analysis Results - cppcheck_args: --enable=warning + cppcheck_args: --enable=warning --project=build/compile_commands.json -j 4 report_pr_changes_only: false - use_cmake: true - cmake_args: -DCMAKE_C_COMPILER=gcc \ - -DCMAKE_CXX_COMPILER=g++ \ - -DCMAKE_BUILD_TYPE=Debug \ - -DBUILD_ALL_DEP=ON \ - -DCHECK_GPU=OFF \ - -DUSE_CUDA=OFF \ - -DUSE_OPENCL=OFF \ - -DUSE_SSE=ON \ - -DUSE_OPENMP=ON \ - -DBUILD_TESTING=OFF \ - -DWITH_COVERAGE=OFF \ - -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ No newline at end of file + use_cmake: false \ No newline at end of file diff --git a/niftyreg_build_version.txt b/niftyreg_build_version.txt index d2a1e59f..43d371af 100644 --- a/niftyreg_build_version.txt +++ b/niftyreg_build_version.txt @@ -1 +1 @@ -427 +428