File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1111jobs :
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
You can’t perform that action at this time.
0 commit comments