Skip to content

Commit 4ebd079

Browse files
committed
remove cache
Signed-off-by: Anas Nashif <[email protected]>
1 parent bc14ce2 commit 4ebd079

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

.github/workflows/codechecker.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -84,31 +84,28 @@ 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
98+
pip install clang-tidy
10099
101100
west build -b native_sim samples/synchronization -- -DZEPHYR_SCA_VARIANT=codechecker -DCODECHECKER_EXPORT=sarif
102101
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
102+
- name: Merge sarif files
111103
if: always()
112104
run: |
113-
ccache -s -vv
114-
105+
pip install sarif-tools
106+
sarif copy --output results.sarif $(find build -name "codechecker.sarif")
107+
- name: Upload Analysis Results
108+
if: always()
109+
uses: github/codeql-action/upload-sarif@v3
110+
with:
111+
sarif_file: results.sarif

0 commit comments

Comments
 (0)