Skip to content

Commit

Permalink
Create codechecker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
szymmirr authored Oct 6, 2023
1 parent 23394e6 commit 3483de8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/codechecker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CodeChecker

on: [push, pull_request]

jobs:
codechecker:
runs-on: ubuntu-latest
steps:
- name: "Check out repository"
uses: actions/checkout@v4

# Prepare a build
- name: "Prepare build"
run: |
mkdir -pv Build
cd Build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
# Run the analysis
- uses: whisperity/codechecker-analysis-action@v1
id: codechecker
with:
logfile: ${{ github.workspace }}/Build/compile_commands.json

# Upload the results to the CI.
- uses: actions/upload-artifact@v2
with:
name: "CodeChecker Bug Reports"
path: ${{ steps.codechecker.outputs.result-html-dir }}

0 comments on commit 3483de8

Please sign in to comment.