forked from KCL-BMEIS/niftyreg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
39 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,43 +6,29 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt update && sudo apt install cppcheck -y | ||
pip3 install --upgrade setuptools urllib3 chardet pyOpenSSL cryptography | ||
pip3 install pygithub | ||
- name: Install CUDA Toolkit | ||
uses: Jimver/[email protected] | ||
with: | ||
method: network | ||
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=ON \ | ||
-DUSE_OPENCL=ON \ | ||
-DUSE_SSE=ON \ | ||
-DUSE_OPENMP=ON \ | ||
-DBUILD_TESTING=OFF \ | ||
-DWITH_COVERAGE=OFF \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ | ||
.. | ||
# - name: Install CUDA Toolkit | ||
# uses: Jimver/[email protected] | ||
# with: | ||
# method: network | ||
# use-github-cache: false | ||
# use-local-cache: false | ||
|
||
- name: Code Analysis | ||
env: | ||
COMMENT_TITLE: Code Analysis Results | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
REPORT_PR_CHANGES_ONLY: false | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: | | ||
cppcheck -j 4 --enable=warning,style,performance,portability --project=build/compile_commands.json --output-file=analysis.txt | ||
python3 ${{ github.workspace }}/.github/code_analysis.py -cc analysis.txt | ||
uses: JacobDomagala/StaticAnalysis@master | ||
with: | ||
comment_title: Code Analysis Results | ||
cppcheck_args: --enable=warning | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
426 | ||
427 |