File tree Expand file tree Collapse file tree 1 file changed +13
-17
lines changed
Expand file tree Collapse file tree 1 file changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -84,31 +84,27 @@ jobs:
8484 gcc --version
8585 ls -la
8686
87- - name : Set up ccache
88- run : |
89- mkdir -p ${CCACHE_DIR}
90- ccache -M 10G
91- ccache -p
92- ccache -z -s -vv
93-
9487 - name : Run Tests with Twister
9588 id : twister
9689 run : |
9790 export ZEPHYR_BASE=${PWD}
9891 export ZEPHYR_TOOLCHAIN_VARIANT=llvm
92+ export ZEPHYR_SCA_VARIANT=codechecker
93+ export CODECHECKER_CONFIG_FILE=$ZEPHYR_BASE/.codechecker.yml
94+ export CODECHECKER_CLEANUP=y
95+ export CODECHECKER_EXPORT=sarif
9996 pip install codechecker==v6.25.1
97+ pip install cppcheck
10098
10199 west build -b native_sim samples/synchronization -- -DZEPHYR_SCA_VARIANT=codechecker -DCODECHECKER_EXPORT=sarif
102100
103- - name : Upload SARIF file
104- uses : github/codeql-action/upload-sarif@v3
105- with :
106- # Path to SARIF file relative to the root of the repository
107- sarif_file : build/sca/codechecker/codechecker.sarif
108- category : codechecker
109-
110- - name : Print ccache stats
101+ - name : Merge sarif files
111102 if : always()
112103 run : |
113- ccache -s -vv
114-
104+ pip install sarif-tools
105+ sarif copy --output results.sarif $(find build -name "codechecker.sarif")
106+ - name : Upload Analysis Results
107+ if : always()
108+ uses : github/codeql-action/upload-sarif@v3
109+ with :
110+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments