Skip to content

Commit

Permalink
Implementing clang static code analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ragghianti committed Jul 7, 2023
1 parent 643fa21 commit 17a10ac
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/clang_analysis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -e

OUT=$1

module load llvm
cd src
scan-build -o $OUT ./configure
scan-build -o $OUT make

11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,14 @@ jobs:
- uses: actions/checkout@v3
- name: Build/Test/Install via Spack
run: .github/workflows/spack.sh
papi_clang_analysis:
runs-on: cpu
steps:
- uses: actions/checkout@v3
- name: Run static analysis
run: ./github/workflows/clang_analysis.sh clang-analysis-output
- name: Archive analysis results
uses: actions/upload-artifact@v3
with:
name: clang-analysis-output
path: clang-analysis-output

0 comments on commit 17a10ac

Please sign in to comment.