Skip to content

Commit 0278463

Browse files
committed
upgrade to ubuntu 24.04, make analysis results a bit more user friendly
1 parent b95de80 commit 0278463

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/static-analysis.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ on:
1111
jobs:
1212
codechecker:
1313
name: CodeChecker
14-
runs-on: ubuntu-latest
14+
15+
# Use latest Ubuntu 24.04 for latest GCC.
16+
# CodeChecker requires gcc >= 13.0.0.
17+
# ubuntu-latest is ubuntu 22.04 (atm)
18+
runs-on: ubuntu-24.04
1519

1620
permissions:
1721
actions: read
@@ -37,10 +41,18 @@ jobs:
3741
config: ${{ github.workspace }}/.codechecker.json
3842

3943
- uses: actions/upload-artifact@v4
44+
id: upload
4045
with:
4146
name: "CodeChecker Bug Reports"
4247
path: ${{ steps.codechecker.outputs.result-html-dir }}
4348

44-
- name: Fail if a warning is found
49+
- name: Fail on Warnings
4550
if: ${{ steps.codechecker.outputs.warnings == 'true' }}
46-
run: exit 1
51+
run: |
52+
cat <<EOF >>$GITHUB_STEP_SUMMARY
53+
**CodeChecker found warnings.**
54+
Please see the 'CodeChecker Bug Reports' artifact for more details:
55+
[${{ steps.upload.outputs.artifact_url }}]
56+
EOF
57+
58+
exit 1

0 commit comments

Comments
 (0)