This commit is contained in:
s3rj1k 2024-12-03 01:56:56 +01:00
parent 873a4a8412
commit d076d3074b
No known key found for this signature in database
2 changed files with 15 additions and 10 deletions

View File

@ -78,15 +78,15 @@ jobs:
./ci.sh -t scan-build -a validate -c freeswitch -p "$GITHUB_WORKSPACE/freeswitch"
# ToDo: FixMe
# - name: Upload Scan-Build logs
# if: failure()
# uses: actions/upload-artifact@v4
# with:
# name: scan-build-logs
# path: freeswitch
# retention-days: 3
# if-no-files-found: ignore
# compression-level: 9
- name: Upload Scan-Build logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: scan-build-logs
path: freeswitch/scan-build
retention-days: 3
if-no-files-found: ignore
compression-level: 9
# ToDo: TestMe
# - name: Notify run tests result to slack

7
ci.sh
View File

@ -146,6 +146,7 @@ build_freeswitch()
scan-build-14 \
--force-analyze-debug-code \
--status-bugs \
--keep-empty \
-o ./scan-build/ \
make --no-keep-going -j$(nproc --all) |& tee ./scan-build-result.txt
build_status=${PIPESTATUS[0]}
@ -160,6 +161,10 @@ build_freeswitch()
exit $build_status
fi
# DEBUG: scan-build failed
echo "scan-build: bugs found!" > ./scan-build-result.txt
exit 1
;;
*)
exit 1
@ -183,7 +188,7 @@ validate_freeswitch()
exit 0
;;
"scan-build")
REPORT_PATH=$(find scan-build* -mindepth 1 -type d)
REPORT_PATH=$(find scan-build/* -mindepth 1 -type d)
if [ -n "$REPORT_PATH" ]; then
echo "Found analysis report at: $REPORT_PATH"