File tree Expand file tree Collapse file tree 1 file changed +12
-17
lines changed
Expand file tree Collapse file tree 1 file changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -84,31 +84,26 @@ 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
10097
10198 west build -b native_sim samples/synchronization -- -DZEPHYR_SCA_VARIANT=codechecker -DCODECHECKER_EXPORT=sarif
10299
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
100+ - name : Merge sarif files
111101 if : always()
112102 run : |
113- ccache -s -vv
114-
103+ pip install sarif-tools
104+ sarif copy --output results.sarif $(find build -name "codechecker.sarif")
105+ - name : Upload Analysis Results
106+ if : always()
107+ uses : github/codeql-action/upload-sarif@v3
108+ with :
109+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments