Skip to content

Commit

Permalink
multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-marcisovsky committed Mar 6, 2024
1 parent a0f28fc commit 264d9f2
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,38 @@ jobs:
working-directory: device/esp_tinyusb/test_app
run: |
. ${IDF_PATH}/export.sh
idf.py clang-check --include-paths $GITHUB_WORKSPACE/host/class/hid/usb_host_hid/test_app --run-clang-tidy-py run-clang-tidy
cp warnings.txt ../../../
idf.py clang-check --run-clang-tidy-py run-clang-tidy
cp warnings.txt warnings_device.txt ../../../
cd ../../../host/class/hid/usb_host_hid/test_app
idf.py clang-check --run-clang-tidy-py run-clang-tidy
cp warnings.txt warnings_host.txt ../../../
- name: Convert clang-tidy results into SARIF output
run: |
export PATH=$PWD:$PATH
./clang-tidy-sarif -o results.sarif.raw warnings.txt
python3 $GITHUB_WORKSPACE/.github/filter_sarif.py -o results.sarif --include-prefix ${GITHUB_WORKSPACE}/ results.sarif.raw
./clang-tidy-sarif -o results_device.sarif.raw warnings_device.txt
python3 $GITHUB_WORKSPACE/.github/filter_sarif.py -o results_device.sarif --include-prefix ${GITHUB_WORKSPACE}/ results_device.sarif.raw
./clang-tidy-sarif -o results_host.sarif.raw warnings_host.txt
python3 $GITHUB_WORKSPACE/.github/filter_sarif.py -o results_host.sarif --include-prefix ${GITHUB_WORKSPACE}/ results_host.sarif.raw
- uses: actions/upload-artifact@v2
with:
path: |
warnings.txt
results.sarif
results.sarif.raw
- name: Upload SARIF file
warnings_device.txt
warnings_host.txt
results_device.sarif
results_host.sarif
results_device.sarif.raw
results_host.sarif.raw
- name: Upload SARIF device file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
sarif_file: results_device.sarif
category: clang-tidy

- name: Upload SARIF host file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results_host.sarif
category: clang-tidy

0 comments on commit 264d9f2

Please sign in to comment.