mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-14 04:54:49 +00:00
DEBUG
This commit is contained in:
parent
873a4a8412
commit
d076d3074b
18
.github/workflows/scan-build.yml
vendored
18
.github/workflows/scan-build.yml
vendored
@ -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
7
ci.sh
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user