Skip to content

Commit

Permalink
try github pages push
Browse files Browse the repository at this point in the history
  • Loading branch information
driftregion committed Jan 25, 2025
1 parent c8c2c19 commit 6e77b7f
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,27 @@ jobs:
- name: checkout
uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake
pip install --upgrade pip
pip install codechecker
- name: generate compile commands
run: bazel build //:iso14229 && bazel run //:lib_compile_commands

- uses: whisperity/codechecker-analysis-action@v1.0.4
id: codechecker
with:
logfile: ${{ github.workspace }}/compile_commands.json
- name: Analyze with CodeChecker
run: |
CodeChecker analyze compile_commands.json -o reports
- name: Generate HTML report
run: |
CodeChecker parse reports --export html -o html_report
- uses: actions/upload-artifact@v4
- name: Deploy HTML to GH Pages
uses: peaceiris/actions-gh-pages@v3
with:
name: "CodeChecker Bug Reports"
path: ${{ steps.codechecker.outputs.result-html-dir }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: html_report
publish_branch: gh-pages

0 comments on commit 6e77b7f

Please sign in to comment.