summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-10-25 12:54:40 +0700
committerhathach <[email protected]>2025-10-25 12:54:40 +0700
commit6cc445ef0f3e7b29cfe2e3d90bb3364afbc424af (patch)
tree9fb8046cd9108739ed2526f79afa4eb0f3faf999 /.github/workflows
parent5e3e24337f82582103ce7e9d8498c49547cab42b (diff)
download ninja binary, apt seems take too long ~ 1 min
also upload sarif as artifacts
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/static_analysis.yml25
1 files changed, 19 insertions, 6 deletions
diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml
index f391855f5..bbb7229df 100644
--- a/.github/workflows/static_analysis.yml
+++ b/.github/workflows/static_analysis.yml
@@ -50,7 +50,7 @@ jobs:
with:
category: CodeQL
upload: always
- id: step1
+ id: analyze
# - name: Filter out unwanted errors and warnings
# uses: advanced-security/filter-sarif@v1
@@ -71,15 +71,21 @@ jobs:
# -**/third*party/**
# -**/3rd*party/**
# -**/external/**
-# input: ${{ steps.step1.outputs.sarif-output }}/cpp.sarif
-# output: ${{ steps.step1.outputs.sarif-output }}/cpp.sarif
+# input: ${{ steps.analyze.outputs.sarif-output }}/cpp.sarif
+# output: ${{ steps.analyze.outputs.sarif-output }}/cpp.sarif
#
# - name: Upload SARIF
# uses: github/codeql-action/upload-sarif@v4
# with:
-# sarif_file: ${{ steps.step1.outputs.sarif-output }}
+# sarif_file: ${{ steps.analyze.outputs.sarif-output }}
# category: CodeQL
+ - name: Upload artifact
+ uses: actions/upload-artifact@v5
+ with:
+ name: codeql-${{ matrix.board }}
+ path: ${{ steps.analyze.outputs.sarif-output }}
+
PVS-Studio:
runs-on: ubuntu-latest
strategy:
@@ -114,14 +120,21 @@ jobs:
cmake examples -B build -G Ninja -DBOARD=${{ matrix.board }} -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=MinSizeRel
cmake --build build
pvs-studio-analyzer analyze -f build/compile_commands.json -j --exclude-path hw/mcu/ --exclude-path lib/
- plog-converter -t sarif -o pvs.sarif PVS-Studio.log
+ plog-converter -t sarif -o pvs-${{ matrix.board }}.sarif PVS-Studio.log
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v4
with:
- sarif_file: pvs.sarif
+ sarif_file: pvs-${{ matrix.board }}.sarif
category: PVS-Studio
+ - name: Upload artifact
+ uses: actions/upload-artifact@v5
+ with:
+ name: pvs-${{ matrix.board }}
+ path: pvs-${{ matrix.board }}.sarif
+
+
# SonarQube:
# name: Build and analyze
# runs-on: ubuntu-latest