Skip to content

Commit

Permalink
upgrade to ubuntu 24.04, make analysis results a bit more user friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
ardera committed Sep 16, 2024
1 parent b95de80 commit 0278463
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ on:
jobs:
codechecker:
name: CodeChecker
runs-on: ubuntu-latest

# Use latest Ubuntu 24.04 for latest GCC.
# CodeChecker requires gcc >= 13.0.0.
# ubuntu-latest is ubuntu 22.04 (atm)
runs-on: ubuntu-24.04

permissions:
actions: read
Expand All @@ -37,10 +41,18 @@ jobs:
config: ${{ github.workspace }}/.codechecker.json

- uses: actions/upload-artifact@v4
id: upload
with:
name: "CodeChecker Bug Reports"
path: ${{ steps.codechecker.outputs.result-html-dir }}

- name: Fail if a warning is found
- name: Fail on Warnings
if: ${{ steps.codechecker.outputs.warnings == 'true' }}
run: exit 1
run: |
cat <<EOF >>$GITHUB_STEP_SUMMARY
**CodeChecker found warnings.**
Please see the 'CodeChecker Bug Reports' artifact for more details:
[${{ steps.upload.outputs.artifact_url }}]
EOF
exit 1

0 comments on commit 0278463

Please sign in to comment.