Update codechecker.yml #5
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
name: CodeChecker | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
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 }} |